openai-whisper-api
它能做什么
它指导 AI 智能体使用 OpenAI 的转写模型,转写语音备忘、播客或会议等音频文件。它适合需要从录音中获取书面文字的人。
适用场景
- ✓你有一段语音备忘或录音,想把它变成书面文字的时候。
- ✓你需要标明谁在说话的转写稿的时候。
- ✓你想把某种语言的音频文件转写为文字的时候。
技能链接
https://github.com/openclaw/openclaw/blob/main/skills/openai-whisper-api/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请把我今天早上的语音备忘转写成文本文件;如果有多人说话,请标明说话人。”
每周 5 个新技能,1 分钟读完。
工作原理
技能把音频文件发送到 OpenAI 的转写服务,并把结果保存为文本或 JSON 文件。你可以选择其他模型,或添加语言提示;如果你有自定义的基础地址,也可以使用它。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
OpenAI transcriptions API
Transcribe audio through /v1/audio/transcriptions. Set OPENAI_BASE_URL for an OpenAI-compatible proxy or local gateway.
Quick start
{baseDir}/scripts/transcribe.sh /path/to/audio.m4a
Defaults:
- Model:
gpt-4o-transcribe - Output:
<input>.txt
Useful flags
{baseDir}/scripts/transcribe.sh /path/to/audio.ogg --model gpt-4o-transcribe --out /tmp/transcript.txt
{baseDir}/scripts/transcribe.sh /path/to/audio.ogg --model gpt-4o-mini-transcribe
{baseDir}/scripts/transcribe.sh /path/to/audio.ogg --model gpt-4o-transcribe-diarize --json
{baseDir}/scripts/transcribe.sh /path/to/audio.ogg --model whisper-1
{baseDir}/scripts/transcribe.sh /path/to/audio.m4a --language en
{baseDir}/scripts/transcribe.sh /path/to/audio.m4a --prompt "Speaker names: Peter, Daniel"
{baseDir}/scripts/transcribe.sh /path/to/audio.m4a --json --out /tmp/transcript.json
Notes:
- Supported upload formats include
mp3,mp4,mpeg,mpga,m4a,wav,webm. - 25 MB upload limit on the hosted API.
- Use diarize for speaker labels; script sends
chunking_strategy=autoand rejects--prompt.
API key
Set OPENAI_API_KEY, or configure it in the active OpenClaw config file ($OPENCLAW_CONFIG_PATH, default ~/.openclaw/openclaw.json). Optionally set OPENAI_BASE_URL:
{
skills: {
"openai-whisper-api": {
apiKey: "OPENAI_KEY_HERE",
},
},
}
常见问题
支持哪些音频格式?
支持 mp3、mp4、m4a、wav 和 webm 等常见格式,上传上限为 25 MB。
我需要 OpenAI 密钥吗?
需要。你需要设置 OPENAI_API_KEY,或把密钥添加到 OpenClaw 配置文件中。
它能标记不同的说话人吗?
可以。diarize 模型会添加说话人标签,但它不接受提示词。
详情
作者的原始描述
OpenAI Audio Transcriptions API via curl; gpt-4o-transcribe, mini, diarize, or whisper-1.
repo: openclaw/openclaw
热度
- GitHub 星标
- 394k
- 排名
- #70
- 许可证
- MIT
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
discord-user-post
394k让你的智能体通过 Discord 桌面应用,以你的身份发送你已批准的消息,并在发送前确认具体频道。
discrawl
394k让你的智能体搜索和总结本地保存的 Discord 消息档案,查看档案的新旧程度,并阅读私信。
gitcrawl
394k让你的智能体搜索已保存的 GitHub 议题和拉取请求档案,将重复内容归类,并在 GitHub 上核实它们的当前状态。
graincrawl
394k让你的智能体搜索已保存的 Granola 会议记录和转写稿,查看它们的新旧程度,并统计某段时间内的数量。