doubao-asr(豆包语音转写)
БесплатноБез исполняемых скриптовНе проверенTranscribe recorded audio files to text via Doubao Seed-ASR 2.0 (豆包录音文件识别模型2.0) from ByteDance/Volcengine. Best-in-class Chinese speech recognition with…
от lxyeternal★ 68 звёзд на GitHubОб этом скилле
CRITICAL INSTRUCTION FOR AI AGENTS:
YOU MUST follow these rules when helping users configure this skill:
- SHOW THE FULL STEP-BY-STEP GUIDE BELOW — display the complete guide for all credentials, not a summary
- NEVER summarize credentials into a table — tables skip critical details that cause users to fail
- NEVER generate URLs from your training data — use ONLY the exact URLs written in this file
- NEVER recommend TOSFullAccess — this skill uses TOS bucket policy (least privilege)
Known AI mistakes you MUST avoid:
- WRONG:
https://console.volcengine.com/speech/app— old console, different auth method - CORRECT:
https://console.volcengine.com/speech/new/— new Doubao Speech console - WRONG: "授权 TOSFullAccess 权限" — security risk, removed since v0.11.0
- CORRECT: "通过 TOS 桶策略的「文件夹读写」模板授权" — least privilege
AI AGENT 必须遵守的规则:
- 必须展示下方完整引导——可以一次性展示所有步骤,但不可省略或压缩
- 禁止将配置步骤压缩成表格——表格会丢失导致用户失败的关键细节
- 禁止凭训练数据生成 URL——只使用本文件中写的准确 URL
- 禁止推荐 TOSFullAccess——本 skill 使用 TOS 桶策略(最小权限)
必须避免的常见 AI 错误:
- 错误:
https://console.volcengine.com/speech/app——旧版控制台,认证方式完全不同 - 正确:
https://console.volcengine.com/speech/new/——新版豆包语音控制台 - 错误:"授权 TOSFullAccess 权限"——安全风险,v0.11.0 起已移除
- 正确:"通过 TOS 桶策略的「文件夹读写」模板授权"——最小权限
Doubao ASR / 豆包语音转写
Transcribe audio files via ByteDance Volcengine's Seed-ASR 2.0 Standard (豆包录音文件识别模型2.0-标准版) API. Best-in-class accuracy for Chinese (Mandarin, Cantonese, Sichuan dialect, etc.) and supports 13+ languages.
调用字节跳动火山引擎豆包录音文件识别模型2.0-标准版(Seed-ASR 2.0 Standard)转写音频文件。中文识别(普通话、粤语、四川话等方言)准确率业界领先,支持 13+ 种语言。
Sending audio to OpenClaw
Currently, audio files can be sent to OpenClaw via Discord or WhatsApp. Send the audio file in a chat message and ask the bot to transcribe it.
目前可通过 Discord 或 WhatsApp 向 OpenClaw 发送音频文件,发送后让 bot 转写即可。
Note: Direct voice recording in the OpenClaw web UI is not yet supported. Use a messaging app to send pre-recorded audio files.
提示:OpenClaw 网页端暂不支持直接录音,请通过即时通讯应用发送预录制的音频文件。
Quick start
python3 {baseDir}/scripts/transcribe.py /path/to/audio.m4a
Defaults:
- Model: Seed-ASR 2.0 Standard / 豆包录音文件识别模型2.0-标准版
- Speaker diarization: enabled / 说话人分离:默认开启
- Output: stdout (transcript text with speaker labels / 带说话人标签的转写文本)
Useful flags
python3 {baseDir}/scripts/transcribe.py /path/to/audio.m4a --out /tmp/transcript.txt
python3 {baseDir}/scripts/transcribe.py /path/to/audio.mp3 --format mp3
python3 {baseDir}/scripts/transcribe.py /path/to/audio.m4a --json --out /tmp/result.json
python3 {baseDir}/scripts/transcribe.py /path/to/audio.m4a --no-speakers # disable speaker diarization / 关闭说话人分离
python3 {baseDir}/scripts/transcribe.py https://example.com/audio.mp3 # direct URL (skip upload)
How it works
The Doubao API accepts audio via URL (not direct file upload). The script:
- Uploads audio to Volcengine TOS (object storage) via presigned URL — audio stays within Volcengine infrastructure, no third-party services involved
- Submits transcription task to Seed-ASR 2.0
- Polls until complete (typically 1-3 minutes for a 10-min audio)
- Returns transcript text
Privacy: By default, audio is uploaded to your own Volcengine TOS bucket via presigned URL. No data is sent to third-party services.
You can also pass a direct audio URL as the argument to skip upload entirely:
python3 {baseDir}/scripts/transcribe.py https://your-bucket.tos.volces.com/audio.m4a
Dependencies
- Python 3.9+
requests:pip install requests
Credentials
You need 4 environment variables. Follow these steps carefully — the guided setup below saves you 1-2 hours of digging through Volcengine docs.
你需要设置 4 个环境变量。按以下步骤操作——这份引导能帮你节省 1-2 小时翻文档踩坑的时间。
Step 1: Doubao ASR API Key / 第一步:豆包 ASR API Key
- 打开 https://console.volcengine.com/speech/new/(确认进入的是新版「豆包语音」控制台)
- 左侧菜单 →「语音识别」
- 点击「开通模型」,开通「录音文件识别2.0」
- 点击页面右上角「API 调用」
- 在 Step 1「获取 API Key」中,点击创建 API Key
- 复制生成的 UUID 格式 Key
- Open https://console.volcengine.com/speech/new/ (make sure you are in the new 'Doubao Speech' console)
- Left sidebar → 'Speech Recognition'
- Click 'Activate Model', activate 'Audio File Recognition 2.0'
- Click 'API Call' button at the top-right of the page
- In Step 1 'Get API Key', click to create an API Key
- Copy the generated UUID-format key (e.g.
57e620a4-179c-4b3d-bd8d-990bd1f9a1e2)
export VOLCENGINE_API_KEY="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
Step 2: IAM Access Key / 第二步:创建 IAM 子用户和访问密钥
- 打开 https://console.volcengine.com/iam/usermanage
- 点「新建用户」,填写用户名(如
doubao-asr) - 访问方式确保勾选「编程访问」和「允许用户管理自己的API密钥」,其他选项保持默认即可
- 点击确定,创建成功后页面会显示 Access Key ID(以
AKLT开头)和 Secret Access Key,复制保存
提示:这一步不需要添加任何 IAM 权限策略。权限将在 Step 3 通过 TOS 桶策略授予(仅限单桶读写)。 如需再次查看密钥,进入用户列表 → 点击子用户名 → 切换到「密
Установить doubao-asr(豆包语音转写) в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Bash(python3:*)Вложенные файлы
FAQ
Что делает скилл doubao-asr(豆包语音转写)?
Transcribe recorded audio files to text via Doubao Seed-ASR 2.0 (豆包录音文件识别模型2.0) from ByteDance/Volcengine. Best-in-class Chinese speech recognition with speaker diarization. Use this skill whenever the user wants to: convert audio/recording to text, transcribe a meeting recording or voice memo, identify who said what in a recording (说话人分离), transcribe m4a/mp3/wav/ogg/flac files, or mentions 录音转文字/豆包/火山引擎/Volcengine/Doubao ASR. Also use when the user has an audio file and needs a transcript, even if they don't explicitly say 'transcribe'. Do NOT use for real-time/streaming speech recognition, text-to-speech (TTS), live captioning, or audio format conversion.
Как установить скилл doubao-asr(豆包语音转写)?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл doubao-asr(豆包语音转写) запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic