openai-whisper-api
steipete/clawdis
Transcribe audio files using OpenAI's Whisper API and newer gpt-4o models via curl.
What is openai-whisper-api?
Transcribes audio files to text using OpenAI's transcription endpoints. Supports multiple models (gpt-4o-transcribe, gpt-4o-mini-transcribe, gpt-4o-transcribe-diarize, whisper-1) and output formats. Use when you need to convert audio recordings into searchable, editable text.
- Transcribe audio files (mp3, mp4, mpeg, mpga, m4a, wav, webm) to text
- Support for speaker diarization with gpt-4o-transcribe-diarize model
- Choose between gpt-4o-transcribe, gpt-4o-mini-transcribe, or whisper-1 models
- Output as plain text or JSON format
- Specify language and provide speaker name hints via prompts
- Use OpenAI-compatible proxies or local gateways via OPENAI_BASE_URL
How to install openai-whisper-api
npx skills add https://github.com/steipete/clawdis --skill openai-whisper-api- curl and node installed
- OPENAI_API_KEY environment variable set
- Audio file in supported format (mp3, mp4, mpeg, mpga, m4a, wav, webm)
- File size under 25 MB for hosted API
How to use openai-whisper-api
- 1.Set OPENAI_API_KEY environment variable or configure in ~/.openclaw/openclaw.json
- 2.Run transcribe.sh with path to audio file: {baseDir}/scripts/transcribe.sh /path/to/audio.m4a
- 3.Optionally specify model with --model flag (defaults to gpt-4o-transcribe)
- 4.Optionally specify output file with --out flag (defaults to <input>.txt)
- 5.Add --json flag for JSON output, --language for language hint, --prompt for speaker names
Use cases
- Convert meeting recordings or interviews into searchable transcripts
- Identify speakers in multi-person audio with diarization
- Transcribe podcasts or audio content for accessibility
- Generate text from voice memos or dictation
- Process audio files in batch workflows with language specification
- Developers building audio processing pipelines
- Content creators needing transcript generation
- Researchers analyzing recorded interviews
- Teams managing meeting documentation
- Anyone integrating speech-to-text into applications
openai-whisper-api FAQ
mp3, mp4, mpeg, mpga, m4a, wav, and webm formats are supported.
The hosted OpenAI API has a 25 MB upload limit.
Use the gpt-4o-transcribe-diarize model with the --model flag; the script automatically handles diarization settings.
Yes, set the OPENAI_BASE_URL environment variable to point to an OpenAI-compatible gateway or local service.
gpt-4o-transcribe, gpt-4o-mini-transcribe, gpt-4o-transcribe-diarize, and whisper-1.
Full instructions (SKILL.md)
Source of truth, from steipete/clawdis.
name: openai-whisper-api description: "OpenAI Audio Transcriptions API via curl; gpt-4o-transcribe, mini, diarize, or whisper-1." homepage: https://platform.openai.com/docs/guides/speech-to-text metadata: { "openclaw": { "emoji": "🌐", "requires": { "bins": ["curl", "node"], "env": ["OPENAI_API_KEY"] }, "primaryEnv": "OPENAI_API_KEY", "install": [ { "id": "brew", "kind": "brew", "formula": "curl", "bins": ["curl"], "label": "Install curl (brew)", }, ], }, }
OpenAI transcriptions API
Transcribe audio through /v1/audio/transcriptions. Set OPENAI_BASE_URL for an OpenAI-compatible proxy or local gateway.
Quick start
{baseDir}/scripts/transcribe.sh /path/to/audio.m4a
Defaults:
- Model:
gpt-4o-transcribe - Output:
<input>.txt
Useful flags
{baseDir}/scripts/transcribe.sh /path/to/audio.ogg --model gpt-4o-transcribe --out /tmp/transcript.txt
{baseDir}/scripts/transcribe.sh /path/to/audio.ogg --model gpt-4o-mini-transcribe
{baseDir}/scripts/transcribe.sh /path/to/audio.ogg --model gpt-4o-transcribe-diarize --json
{baseDir}/scripts/transcribe.sh /path/to/audio.ogg --model whisper-1
{baseDir}/scripts/transcribe.sh /path/to/audio.m4a --language en
{baseDir}/scripts/transcribe.sh /path/to/audio.m4a --prompt "Speaker names: Peter, Daniel"
{baseDir}/scripts/transcribe.sh /path/to/audio.m4a --json --out /tmp/transcript.json
Notes:
- Supported upload formats include
mp3,mp4,mpeg,mpga,m4a,wav,webm. - 25 MB upload limit on the hosted API.
- Use diarize for speaker labels; script sends
chunking_strategy=autoand rejects--prompt.
API key
Set OPENAI_API_KEY, or configure it in the active OpenClaw config file ($OPENCLAW_CONFIG_PATH, default ~/.openclaw/openclaw.json). Optionally set OPENAI_BASE_URL:
{
skills: {
"openai-whisper-api": {
apiKey: "OPENAI_KEY_HERE",
},
},
}
Related skills
More from steipete/clawdis and the wider catalog.

openhue
Control Philips Hue lights and scenes via OpenHue CLI.

oracle
Second-model code review, debug, and refactor with file selection, token preview, and API or browser execution.

ordercli
CLI for checking Foodora past orders and tracking active delivery status.

peekaboo
Capture and automate macOS UI with CLI commands for screenshots, element targeting, and input control.

sag
ElevenLabs text-to-speech with native macOS say-like command interface.

session-logs
Search and analyze your conversation history using jq and ripgrep.