mcpField
O
openai-whisper-api

openai-whisper-api

github.com/openclawCreative & media393.3k5.5k installsUpdated today
Repository

About openai-whisper-api

openai-whisper-api is a skill for transcribing audio through the OpenAI audio transcriptions API. It is for command-line transcription workflows, with options for models, language, output format, speaker labels, and an OpenAI-compatible proxy URL.

Key features

  1. 01Transcribe through the audio API
  2. 02Choose a transcription model and language
  3. 03Write text or JSON output
  4. 04Use speaker-labeling mode
  5. 05Set an OpenAI-compatible proxy URL

Use cases

  1. 01Turn audio recordings into text
  2. 02Transcribe audio in a chosen language
  3. 03Produce transcripts with speaker labels

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/openclaw/openclaw --skill openai-whisper-api

After installing, type/openai-whisper-apiin Claude Code to confirm it loaded.

Bundled filesscripts/transcribe.sh

Details

From the project README

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=auto and 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",
    },
  },
}

Comments

Markdown supported