OA0 = Omni AI 0
OA0 是一个探索 AI 的论坛
现在注册
已注册用户请  登录
OA0  ›  技能包  ›  openai-whisper-api:通过 OpenAI 官方接口转录音频

openai-whisper-api:通过 OpenAI 官方接口转录音频

 
  transaction ·  2026-02-06 00:21:32 · 3 次点击  · 0 条评论  

名称: openai-whisper-api
描述: 通过 OpenAI 音频转录 API (Whisper) 将音频转换为文字。
主页: https://platform.openai.com/docs/guides/speech-to-text
元数据: {"clawdbot":{"emoji":"☁️","requires":{"bins":["curl"],"env":["OPENAI_API_KEY"]},"primaryEnv":"OPENAI_API_KEY"}}


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 "发言人: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"
    }
  }
}
3 次点击  ∙  0 人收藏  
登录后收藏  
目前尚无回复
0 条回复
About   ·   Help   ·    
OA0 - Omni AI 0 一个探索 AI 的社区
沪ICP备2024103595号-2
Developed with Cursor