OpenAI Whisper API (curl) 是做什么的?
通过OpenAI的 /v1/audio/transcriptions 端点转录音频文件。
快速开始
{baseDir}/scripts/transcribe.sh /path/to/audio.m4a
默认值:
- 模型:
whisper-1 - 输出:
<input>.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,或在 ~/.otto/otto.json 中配置:
{
skills: {
"openai-whisper-api": {
apiKey: "OPENAI_KEY_HERE",
},
},
}