用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/agentrix-ai/skills --skill doubao-asr命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | doubao-asr |
| description | Transcribe audio files to text using Volcengine Doubao (豆包) Big-Model ASR 2.0 with word-level timestamps |
| metadata | {"openclaw":{"emoji":"👂","requires":{"bins":"[Truncated]","env":"[Truncated]"},"primaryEnv":"VOLCENGINE_TTS_TOKEN"}} |
Transcribe audio files to text using Volcengine Doubao Big-Model ASR. Supports word-level timestamps, punctuation, ITN (inverse text normalization), speaker diarization, and channel splitting.
# Transcribe a local audio file
python3 scripts/asr_transcribe.py --audio recording.mp3
# Transcribe from URL
python3 scripts/asr_transcribe.py --url "https://example.com/audio.wav"
# Save transcription to file
python3 scripts/asr_transcribe.py --audio meeting.mp3 --output transcript.txt
# With speaker diarization
python3 scripts/asr_transcribe.py --audio meeting.mp3 --speakers
Submit: POST https://openspeech.bytedance.com/api/v3/auc/bigmodel/submit
Query: POST https://openspeech.bytedance.com/api/v3/auc/bigmodel/query
Script: scripts/asr_transcribe.py
Parameters:
| Param | Flag | Required | Default | Description |
|---|---|---|---|---|
| audio | --audio | Yes* | — | Path to local audio file |
| url | --url | Yes* | — | URL to audio file |
| output | --output | No | — | Save transcript to text file |
| format | --format | No | auto-detect | Audio format: mp3, wav, ogg, m4a, flac, aac, amr |
| speakers | --speakers | No | false | Enable speaker diarization |
| channels | --channels | No | false | Enable channel splitting |
| words | --words | No | false | Show word-level timestamps |
| max-wait | --max-wait | No | 120 | Max seconds to wait for async tasks |
*One of --audio or --url is required.
Examples:
# Basic transcription
python3 scripts/asr_transcribe.py --audio podcast.mp3
# Show word-level timestamps
python3 scripts/asr_transcribe.py --audio speech.wav --words
# Multi-speaker meeting with output file
python3 scripts/asr_transcribe.py --audio meeting.mp3 --speakers --output meeting.txt
# From URL with channel splitting
python3 scripts/asr_transcribe.py --url "https://example.com/call.wav" --channels
# Custom audio format
python3 scripts/asr_transcribe.py --audio recording.raw --format pcm
Success output:
音频时长: 5496ms
识别结果: 你好,我是豆包语音合成,今天天气真不错,一起出去走走吧。
With --words:
音频时长: 5496ms
识别结果: 你好,我是豆包语音合成,今天天气真不错,一起出去走走吧。
逐字时间戳:
[0.19s-0.35s] 你
[0.35s-0.71s] 好
[0.71s-0.99s] 我
...
These can be set in the request object when calling the API directly:
| Parameter | Type | Default | Description |
|---|---|---|---|
model_name | string | bigmodel | Model name |
model_version | string | 400 | Model version |
enable_itn | bool | true | Inverse text normalization (numbers → digits) |
enable_punc | bool | true | Automatic punctuation |
enable_ddc | bool | true | Spoken language normalization |
show_utterances | bool | true | Return sentence-level segments |
enable_channel_split | bool | false | Split audio channels (for stereo) |
enable_speaker_info | bool | false | Speaker diarization |
The ASR API uses header-based auth (different from TTS Bearer token):
| Header | Value |
|---|---|
X-Api-App-Key | AppID |
X-Api-Access-Key | Access Token |
X-Api-Resource-Id | volc.bigasr.auc |
X-Api-Request-Id | Unique task UUID |
X-Api-Sequence | -1 (single request) |
| Code | Status | Action |
|---|---|---|
20000000 | Completed | Results available |
20000001 | Queued | Wait and re-query |
20000002 | Processing | Wait and re-query |
| Other | Failed | Check error message |
mp3, wav, ogg, m4a, flac, aac, amr, pcm (16kHz 16bit mono)
| Variable | Required | Description |
|---|---|---|
VOLCENGINE_TTS_APPID | Yes | Application ID |
VOLCENGINE_TTS_TOKEN | Yes | Access Token |