Opennan

Transcription

已上线

Send an audio or video link. Get the full text, the spoken language, timed segments, every word with its own timing and a ready SRT file for subtitles.

$0.004768 per minuteFailed runs are not charged.

Transcription

输入

  • cafe-live-english-820bbfaa.mp3Reading the length…
A 2- or 3-letter code (en, th, ja). Leave it empty to detect the language.

$0.004768 per started minute.

输出

示例
示例输出Made with these inputs

Hello and welcome to our coffee shop. Today we have fresh chocolate cakes. Want to try them?

Language: eng · 0:07 transcribed

Download SRT
SRT
1
00:00:00,200 --> 00:00:02,240
Hello and welcome to our coffee shop.

2
00:00:03,040 --> 00:00:05,160
Today we have fresh chocolate cakes.

3
00:00:05,880 --> 00:00:06,500
Want to try them?
Word timings (17)
  1. 0:00.20–0:00.50Hello
  2. 0:00.80–0:00.90and
  3. 0:00.98–0:01.28welcome
  4. 0:01.32–0:01.38to
  5. 0:01.42–0:01.54our
  6. 0:01.58–0:01.82coffee
  7. 0:01.90–0:02.24shop.
  8. 0:03.04–0:03.40Today
  9. 0:03.46–0:03.54we
  10. 0:03.58–0:03.84have
  11. 0:03.90–0:04.18fresh
  12. 0:04.28–0:04.66chocolate
  13. 0:04.72–0:05.16cakes.
  14. 0:05.88–0:05.98Want
  15. 0:06.00–0:06.08to
  16. 0:06.12–0:06.32try
  17. 0:06.34–0:06.50them?

运作方式

  1. 01Send the fileAn https link to an MP3, WAV, M4A, MP4, MOV or WEBM.
  2. 02We transcribe itEvery word, with its timing.
  3. 03Get the textText, segments and SRT, billed by the minute read.

从代码调用 Transcription

One endpoint and one key, on the same balance as the playground. The request below is the example's own.

POSThttps://api.opennan.com/v1/audio/transcriptions
  1. 获取 API 密钥

    在控制台创建密钥。它与试用区使用同一余额。

    创建密钥
  2. 发送第一个请求

    与试用区发送的请求相同。把 OPENNAN_KEY 设为你的密钥。

    curl https://api.opennan.com/v1/audio/transcriptions \
      -H "Authorization: Bearer $OPENNAN_KEY" \
      -H "Content-Type: application/json" \
      -d '{"audio_url":"https://cdn.opennan.com/examples/voice/cafe-live-english-820bbfaa.mp3","language":"en"}'
    
    # Then poll until "status" is "succeeded" or "failed":
    curl https://api.opennan.com/v1/tasks/<task id> -H "Authorization: Bearer $OPENNAN_KEY"
  3. 查询任务

    调用会立即返回任务 ID。查询任务直到完成:

    GEThttps://api.opennan.com/v1/tasks/{id}
    queued
    等待处理
    running
    生成中
    succeeded
    完成:outputs[].url 中是文件
    failed
    失败:不收费

错误及解决方法

  • 401缺少密钥或密钥错误

    用 Authorization: Bearer 请求头发送控制台中的密钥。

  • 402余额不足

    在账单页面充值,然后重新发送同一请求。

  • 400有值不被接受

    查看 error.message,它会指出字段。请使用参数表中的值。

  • 429请求过多

    等几秒再试,每次遇到 429 都等得更久一些。

把 Opennan 添加到你的 AI 应用

安装一次,你的 AI 就能使用 Opennan 的全部工具:视频、图片、聊天、语音、音乐、音效、3D、字幕和配音。选择你的应用,按步骤操作。

MCP 服务器https://api.opennan.com/v1/mcp

适用于 Codex CLI、Codex 应用和 Codex IDE 扩展:它们共用 ~/.codex/config.toml。如果应用或 IDE 读不到 OPENNAN_KEY,请用写入密钥的 config.toml 方式。Codex 每次调用工具前会询问,批准即可继续。

  1. 获取 API 密钥

    在控制台创建密钥。密钥以 sk- 开头,与网站共用同一余额。

    创建密钥
  2. 把密钥保存为 OPENNAN_KEY

    # macOS / Linux (zsh shown; bash: ~/.bashrc)
    echo 'export OPENNAN_KEY="sk-..."' >> ~/.zshrc
    source ~/.zshrc
    
    # Windows (PowerShell), then open a new terminal
    setx OPENNAN_KEY "sk-..."
  3. 安装 Opennan 插件:包含服务器,以及教 AI 选择模型、确认价格、等待结果的技能

    codex plugin marketplace add Opennan/opennan-ai-plugin
    codex plugin add opennan@opennan
  4. 或者只添加服务器

    codex mcp add opennan --url https://api.opennan.com/v1/mcp --bearer-token-env-var OPENNAN_KEY
  5. 或者把这段加到 ~/.codex/config.toml

    [mcp_servers.opennan]
    url = "https://api.opennan.com/v1/mcp"
    http_headers = { Authorization = "Bearer sk-..." }
  6. 确认列表里有 opennan

    codex mcp list
  7. 重启 Codex,然后让它做任何事

    “做一段 5 秒的霓虹街道下雨视频,再配一首歌和一张海报图。”

把 sk-... 换成你自己的密钥并妥善保管:拿到它的人可以花你的余额。没有密钥时应用也能列出工具,但生成内容需要密钥。

在 AI 智能体中使用

把 Opennan MCP 服务器加到你的智能体中,然后调用此工具。

工具
transcribe_audio
示例参数
{
  "audio_url": "https://cdn.opennan.com/examples/voice/cafe-live-english-820bbfaa.mp3",
  "language": "en"
}

Transcription:常见问题

Transcription 多少钱?

$0.004768 per minute. The Run button shows the exact price for your input before you start.

如何从代码调用?

带上 API 密钥发送 POST https://api.opennan.com/v1/audio/transcriptions。返回任务 ID:查询 https://api.opennan.com/v1/tasks/{id},直到任务成功或失败。

我的 AI 智能体能用吗?

能。添加 MCP 服务器 https://api.opennan.com/v1/mcp 并调用 transcribe_audio 工具,或让智能体阅读 https://api.opennan.com/llms.txt。

运行失败会怎样?

失败的运行不收费。只为结果付费。

我们只使用网站必需的 Cookie,例如你的语言和推荐码。没有广告。我们使用不依赖 Cookie 的分析工具统计页面访问量。详情请参阅我们的 Cookie 政策 。