跳到正文
Skillpedia
音频与语音394k · #70

openai-whisper-api

它能做什么

它指导 AI 智能体使用 OpenAI 的转写模型,转写语音备忘、播客或会议等音频文件。它适合需要从录音中获取书面文字的人。

适用场景

  • ✓你有一段语音备忘或录音,想把它变成书面文字的时候。
  • ✓你需要标明谁在说话的转写稿的时候。
  • ✓你想把某种语言的音频文件转写为文字的时候。

技能链接

https://github.com/openclaw/openclaw/blob/main/skills/openai-whisper-api/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/openclaw/openclaw/blob/main/skills/openai-whisper-api/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 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=auto and 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

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能