网淘吧来吧,欢迎您!

返回首页 微信
微信
手机版
手机版

Openai Whisper Api

2026-03-24 新闻来源:网淘吧 围观:95
电脑广告
手机广告

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"
    }
  }
}
免责申明
部分文章来自各大搜索引擎,如有侵权,请与我联系删除。
打赏
文章底部电脑广告
手机广告位-内容正文底部

相关文章

您是本站第239956名访客 今日有48篇新文章/评论