Openai Whisper Api
2026-03-24
新闻来源:网淘吧
围观:93
电脑广告
手机广告
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环境变量,或在~/.clawdbot/clawdbot.json文件中配置:
{
skills: {
"openai-whisper-api": {
apiKey: "OPENAI_KEY_HERE"
}
}
}文章底部电脑广告
手机广告位-内容正文底部


微信扫一扫,打赏作者吧~