
A straightforward wrapper around OpenAI's Whisper transcription API using curl. You point it at an audio file (m4a, ogg, whatever Whisper supports), and it spits out a text transcript. Supports the usual options like language hints, custom prompts for better accuracy with speaker names, and JSON output if you need structured data. The nice touch is OPENAI_BASE_URL support, so you can swap in a local gateway or proxy without changing your workflow. It's the kind of tool you drop into a script when you need quick transcription without installing Python dependencies or dealing with the Whisper model locally. Does one thing, does it simply.
$ npx -y skills add steipete/clawdis --skill openai-whisper-api --agent claude-codeInstalls into .claude/skills of the current project.
Transcribe audio through /v1/audio/transcriptions. Set OPENAI_BASE_URL for an OpenAI-compatible proxy or local gateway.
{baseDir}/scripts/transcribe.sh /path/to/audio.m4a
Defaults:
gpt-4o-transcribe<input>.txt{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:
mp3, mp4, mpeg, mpga, m4a, wav, webm.chunking_strategy=auto and rejects --prompt.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",
},
},
}
Sponsors