voice-to-text
语音转文字(ASR)。使用火山引擎 BigModel ASR 识别语音,支持飞书语音消息、本地音频文件及音频 URL。当收到语音消息或音频附件(.ogg/.mp3/.wav)时使用本技能。
- Installs
- 353
- Last 24h
- —
- Trending rank
- —
- Security
- Not audited
Install
Works with every agent the skills CLI supports.
npx skills add https://skills.volces.com --skill voice-to-text- 01
Install
Run the command in your project. The CLI asks which agents to install for.
- 02
Describe the task
Ask your agent for something this skill covers. It loads voice-to-text automatically when relevant.
- 03
Review the result
The agent follows the SKILL.md steps, scripts and references bundled with the skill.
SKILL.md
The instructions your agent reads when the skill is triggered.
Voice to Text Skill
基于火山引擎 BigModel ASR 将语音转为文字。准确率和多语言能力远优于本地 whisper,且速度更快。
适用场景
- 收到飞书语音消息(
message_type: audio),需要自动识别语音内容 - 收到音频文件附件(
.ogg、.mp3、.wav) - 用户提到「语音识别」「语音转文字」「ASR」
强制规则(最高优先级)
当你收到语音消息或音频文件附件时:
- 必须且只能使用 本 Skill 的
asr.py脚本来识别语音 - 禁止使用
whisper命令或 openai-whisper skill - 禁止 fallback:如果 asr.py 执行失败,直接将错误信息告知用户,不要改用 whisper
使用步骤
- 确认音频来源(本地文件、URL 或飞书语音 file_key)。
- 运行脚本前先
cd到本技能目录:skills/voice-to-text。 - 执行对应命令(见下方参数说明)。
- 将脚本输出的文字当作用户发送的文本消息,理解其意图并正常回复。不需要额外说明"语音识别结果是xxx",直接回答用户的问题即可。
环境变量与鉴权
鉴权采用新版控制台方案,详见:快速入门(新版控制台)、API Key 使用。
使用前需配置:
- 推荐(新版控制台):
MODEL_SPEECH_API_KEY— 在豆包语音新版控制台开通录音文件识别极速版,并创建/获取 API Key。 - 兼容旧版:若同时配置
MODEL_SPEECH_APP_ID与MODEL_SPEECH_API_KEY,则使用旧版 X-Api-App-Key / X-Api-Access-Key 鉴权。 - 可选:
MODEL_SPEECH_ASR_API_BASE(ASR API 端点,默认 BigModel Flash)、MODEL_SPEECH_ASR_RESOURCE_ID(资源 ID,默认volc.bigasr.auc_turbo)。 - 飞书相关:
FEISHU_TENANT_TOKEN(飞书 tenant_access_token,仅在使用--file-key模式时需要)。
脚本参数
| 参数 | 必填 | 说明 |
|---|---|---|
--file | 三选一 | 本地音频文件路径 |
--url | 三选一 | 音频文件的 URL 地址 |
--file-key | 三选一 | 飞书语音消息的 file_key |
--feishu-token | 否 | 飞书 tenant_access_token(也可通过 FEISHU_TENANT_TOKEN 环境变量设置) |
--appid | 否 | 火山引擎 ASR App ID(也可通过 MODEL_SPEECH_APP_ID 环境变量设置) |
--token | 否 | 火山引擎 ASR API Key(也可通过 MODEL_SPEECH_API_KEY 环境变量设置) |
--language | 否 | 语言代码,如 zh-CN、ja-JP、en-US(不传则自动识别) |
返回值说明
脚本输出纯文本到 stdout,即为用户说的话。如果失败,stdout 会包含以 [voice-to-text ERROR] 开头的错误信息。
飞书语音消息处理流程
收到 audio 消息 → 音频文件已下载到 /root/.openclaw/media/inbound/ → 执行 asr.py --file → 返回文字 → 当作用户消息处理
常用命令:
# 飞书语音文件(最常用,文件已被飞书插件自动下载)
python scripts/asr.py --file "/root/.openclaw/media/inbound/xxxxx.ogg"
错误处理
- 若报错
PermissionError: MODEL_SPEECH_API_KEY ... 需在环境变量中配置:提示用户按快速入门(新版控制台)开通录音文件识别极速版,并获取并配置MODEL_SPEECH_API_KEY,写入 workspace 下的环境变量文件后重试。 - 若报错
ASR 请求失败:根据错误码和信息提示用户检查 API 凭据及账号是否已开通豆包语音服务。 - 若报错
音频文件不存在或音频文件为空:检查文件路径是否正确。 - 遇到报错时直接告知用户具体错误,不要尝试用 whisper 替代。
参考文档
- 火山引擎 BigModel ASR
- 快速入门(新版控制台) — 鉴权与开通
- API Key 使用
示例
# 本地音频文件(最常用)
python scripts/asr.py --file "/root/.openclaw/media/inbound/xxxxx.ogg"
# 音频 URL
python scripts/asr.py --url "https://example.com/audio.mp3"
# 指定语言
python scripts/asr.py --file "/path/to/audio.ogg" --language "ja-JP"
# 飞书 file_key(需要 tenant_token)
python scripts/asr.py --file-key "file_v2_xxxx" --feishu-token "t-g104xxx"
FAQ
What does the voice-to-text skill do?
语音转文字(ASR)。使用火山引擎 BigModel ASR 识别语音,支持飞书语音消息、本地音频文件及音频 URL。当收到语音消息或音频附件(.ogg/.mp3/.wav)时使用本技能。
How do I install voice-to-text?
Run npx skills add https://skills.volces.com --skill voice-to-text in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/voice-to-text/ (personal) or .claude/skills/voice-to-text/ (project).
Which AI agents can use voice-to-text?
Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.
Is voice-to-text safe to install?
No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.
Who maintains voice-to-text?
It is published by skills.volces.com in skills.volces.com. It has 353 recorded installs.
More from skills.volces.com
byted-web-search
skills.volces.com
火山引擎豆包搜索 API(原联网搜索/融合信息搜索),返回网页/图片结果。联网搜索场景优先使用本 skill。触发词包括:豆包搜索、查/搜/找、真的吗/靠谱吗/确认/核实、最近/今天/最新/近期、出处/来源/链接、Agent Plan、融合信息搜索、Harness、有什么/有哪些/推荐、价格/政策/汇率/行情、对比/区别/哪个好、听说/据说/不太确定、热搜/热门/火、帮我看/了解一下、求证/辟谣、值不值得/该不该。任务依赖在线事实或时效性时优先使用。若回答可能依赖外部事实,优先调用本 skill 再作答。
byted-supabase
skills.volces.com
火山引擎 Supabase . 管理 AIDAP Supabase 项目、工作区、数据库、分支、Auth、Realtime、Edge Functions、Storage、API Keys、SQL、Schema 变更、TypeScript 类型生成和 MCP 集成。
find-skills
skills.volces.com
Helps users discover and install agent skills when they ask questions like "how do I do X", "find a skill for X", "is there a skill that can...", or express interest in extending capabilities. This skill should be used when the user is looking for functionality that might exist as an installable skill.
byted-util-ark-cua
skills.volces.com
Delegate broad computer-use tasks to ARK CUA for Volcengine AgentPlan users through an authenticated cloud desktop, and synchronize explicit credentials to a caller-owned CUA through Credential Agent. Use for web or desktop-app operation, file workflows, reusable task contexts, artifacts, temporary CUA App URLs, desktop shutdown/start/recovery, inspection, or exact browser, environment, secret, Credential Set, and managed-file credential setup/sync/status/reset. Do not use when local reasoning or a purpose-built local/API tool can complete the request more directly.
agent-browser
skills.volces.com
Headless browser automation CLI optimized for AI agents with accessibility tree snapshots and ref-based element selection
self-improving-agent
skills.volces.com
AI自我改进与记忆系统 - 解决'同类错误反复犯、用户纠正不长记性'的痛点。自动捕获错误、用户纠正、最佳实践,并转化为长期记忆。
Popular media & creative skills
hyperframes
heygen-com/hyperframes
Read first to make, edit, animate or render any video with HyperFrames (HTML rendered to video), including launch films, explainers, music videos, charts, maps, vertical clips, title cards, captions and overlays. Holds the render contract, the work loop and what each kind of video needs.
media-use
heygen-com/hyperframes
Get or make any media for a HyperFrames video - music, sound effects, images, icons, logos, voiceover, avatar and generated video, transcripts, cutouts, colour grades and looks - with HeyGen or free local tools, and mix placed audio. Also for footage that looks dark, flat or dull, or should be stylized or hidden.
hyperframes-registry
heygen-com/hyperframes
About 450 ready-made HyperFrames blocks and components installed as editable source - transitions, overlays, titles, kinetic type, captions, charts, map overlays, 3D, camera moves. Use it before hand-building any named visual (CRT scanlines, glitch, film grain, a chart); also for hyperframes add and catalog.
hyperframes-creative
heygen-com/hyperframes
Non-animation creative direction for HyperFrames videos. Use for design spec (frame.md / design.md) handling, palettes, typography, narration, beat planning, audio-reactive visuals, composition patterns, and brand / style decisions. For atomic motion patterns and scene blueprints, use hyperframes-animation.
ai-video-generation
101-skills/superpowers
Generate AI videos with Google Veo, Seedance 2.0, HappyHorse, Wan, Grok and 40+ models via inference.sh CLI. Models: Veo 3.1, Veo 3, Seedance 2.0, HappyHorse 1.0, Wan 2.5, Grok Imagine Video, OmniHuman, Fabric, HunyuanVideo. Capabilities: text-to-video, image-to-video, reference-to-video, video editing, lipsync, avatar animation, video upscaling, foley sound. Use for: social media videos, marketing content, explainer videos, product demos, AI avatars. Triggers: video generation, ai video, text to video, image to video, veo, animate image, video from image, ai animation, video generator, generate video, t2v, i2v, ai video maker, create video with ai, runway alternative, pika alternative, sora alternative, kling alternative, seedance, happyhorse
ai-image-generation
101-skills/superpowers
Generate AI images with GPT-Image-2, FLUX, Gemini, Grok, Seedream, Reve and 50+ models via inference.sh CLI. Models: GPT-Image-2, FLUX Dev LoRA, FLUX.2 Klein LoRA, Gemini 3 Pro Image, Grok Imagine, Seedream 4.5, Reve, ImagineArt. Capabilities: text-to-image, image-to-image, inpainting, LoRA, image editing, upscaling, text rendering. Use for: AI art, product mockups, concept art, social media graphics, marketing visuals, illustrations. Triggers: flux, image generation, ai image, text to image, stable diffusion, generate image, ai art, midjourney alternative, dall-e alternative, text2img, t2i, image generator, ai picture, create image with ai, generative ai, ai illustration, grok image, gemini image, gpt image, openai image, chatgpt image