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 "話者名: ピーター, ダニエル"
{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"
}
}
}