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 を設定するか、~/.otto/otto.json で設定します:
{
skills: {
"openai-whisper-api": {
apiKey: "OPENAI_KEY_HERE",
},
},
}