OpenAI Whisper API (curl)
通过 OpenAI 的 /v1/audio/transcriptions 端点转录音频文件。
快速开始
{baseDir}/scripts/transcribe.sh /path/to/audio.m4a
默认值:
- 模型:
whisper-1 - 输出:
<输入文件名>.txt
常用标志
{baseDir}/scripts/transcribe.sh /path/to/audio.ogg --model whisper-1 --out /tmp/transcript.txt
{baseDir}/scripts/transcribe.sh /path/to/audio.m4a --language en
{baseDir}/scripts/transcribe.sh /path/to/audio.m4a --prompt "说话者姓名:Peter, Daniel"
{baseDir}/scripts/transcribe.sh /path/to/audio.m4a --json --out /tmp/transcript.json
API 密钥
设置 OPENAI_API_KEY,或在 ~/.clawdbot/clawdbot.json 中配置:
{
skills: {
"openai-whisper-api": {
apiKey: "OPENAI_KEY_HERE"
}
}
}