openai-whisper-api
openclaw/openclaw · Agent Skill
使用 OpenAI Whisper API 將音訊檔案轉錄為文字。支援各種模型和音訊格式。
前往安裝 ↓安裝選項
預設為含檢閱步驟的提示。您可以切換到直接指令。
透過 Claude 或 Codex 安裝
複製提示,貼入 Claude、Codex 或其他助手,它會檢視技能頁面並安裝。
I'd like to install this Claude Code skill: https://github.com/openclaw/openclaw/tree/main/skills/openai-whisper-api Please review the SKILL.md file, verify the skill is legitimate, then copy the skill folder into .claude/skills/ of my project.
直接指令會跳過檢閱 — 請先檢查原始碼。
npx skills add https://github.com/openclaw/openclaw/tree/main/skills/openai-whisper-api
安裝前請先檢視 SKILL.md 與相關檔案。點擊檔案即可預覽。
SKILL.md 內容
作者原文 · 唯讀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",
},
},
}