Automatic Speech Recognition logo

Automatic Speech Recognition

Community
JianhuiWei7
automatic-speech-recognition

字节跳动火山引擎ASR自动语音识别工具:基于HTTP API将音视频文件转换为文本,支持本地文件/URL输入,输出识别结果JSON/纯文本/SRT字幕。当用户要求从音频或视频识别文本时,必须立即调用此技能。本技能用于把用户提供的音视频文件通过火山引擎ASR API合成为文本内容,支持两种输入方式:本地音视频文件、在线音视频URL。

Overview

PublisherJianhuiWei7
RepositoryVideoWeaver
Skill nameautomatic-speech-recognition
Stars
48
Forks
1
Bundled files
2
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 2 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by JianhuiWei7 on GitHub. Read the source before you install it.

Installation

Install the Automatic Speech Recognition AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/JianhuiWei7/VideoWeaver/tree/main/skills/automatic-speech-recognition
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/JianhuiWei7/VideoWeaver.git /tmp/VideoWeaver
mkdir -p .claude/skills
cp -r /tmp/VideoWeaver/skills/automatic-speech-recognition .claude/skills/automatic-speech-recognition
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Automatic Speech Recognition in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Automatic Speech Recognition on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Automatic Speech Recognition is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

第一步:执行语音识别

调用脚本执行ASR识别并输出结果。

  1. 参数说明 | 参数名 | 说明 | |--------|------| | --session-key | (可选;OpenClaw 必填) 输出目录 session-key。CodeX/Claude Code 环境会自动识别,不需要传入内容;OpenClaw 环境必须运行 session_status 获取session-key并且传入, 格式通常为 agent:{agent_id}:{session_id}。 | | --file-path | (二选一) 本地音视频文件路径,支持mp3/wav/mp4等常见格式 | | --file-url | (二选一) 在线音视频文件URL | | --output | 输出识别结果文件名,可选。将自动保存在当前会话的输出目录下,支持.json(完整结果)/.txt(仅识别文本)/.srt(字幕文件) | | --enable-itn | 是否启用文本规范化,默认true | | --enable-punc | 是否启用标点符号,默认true | | --enable-ddc | 是否启用语气词识别,默认true | | --enable-speaker-info | 是否启用说话人分离,默认false | | --show-timestamps | 是否在控制台和纯文本输出中展示每一句的时间戳,默认false | | --verbose | 是否打印调试信息,默认false |

  2. 典型使用案例

案例1:识别本地音频,输出到控制台

bash
python automatic-speech-recognition/scripts/recognize.py --session-key "agent:{agent_id}:{session_id}" --file-path "luise.mp3"

案例2:识别本地视频中的音频,保存字幕结果

bash
python automatic-speech-recognition/scripts/recognize.py --session-key "agent:{agent_id}:{session_id}" --file-path "video.mp4" --output "result.srt"

案例3:识别在线音视频URL

bash
python automatic-speech-recognition/scripts/recognize.py --session-key "agent:{agent_id}:{session_id}" --file-url "https://example.com/audio.mp3"

案例4:识别音频,并在控制台及文本输出中附带时间戳

bash
python automatic-speech-recognition/scripts/recognize.py --session-key "agent:{agent_id}:{session_id}" --file-path "luise.mp3" --show-timestamps --output "result.txt"
  1. 执行规范(必须遵守)
  • 鉴权与密钥管理:任何时候不得把 ASR_TOKEN 写入代码、日志或对外输出。
  • 成功判定:脚本退出码为0且返回识别结果,才算识别成功。
  • 失败处理:若服务端返回错误消息,必须把错误信息原样返回给用户,并提示检查输入参数是否有效。

第二步(可选, 如果没有此需求, 可以直接跳过):将字幕硬编码到视频中

如果用户需要生成带有硬字幕的视频,调用 embed_subtitles.py 脚本,将生成的 .srt 文件烧录回原视频中。

  1. 参数说明 | 参数名 | 说明 | |--------|------| | --session-key | (可选;OpenClaw 必填) 输出目录 session-key。CodeX/Claude Code 环境会自动识别,不需要传入内容;OpenClaw 环境必须运行 session_status 获取session-key并且传入, 格式通常为 agent:{agent_id}:{session_id}。 | | --video | (必填) 输入的原视频文件路径(如 .mp4) | | --srt | (必填) 生成的 .srt 字幕文件路径 | | --output | (可选) 输出的视频文件名(不含路径)。生成的新视频将固定保存在当前会话的输出目录下。如果不指定,默认生成 原视频名_with_subtitles.mp4 |

  2. 使用案例

bash
python automatic-speech-recognition/scripts/embed_subtitles.py --session-key "agent:{agent_id}:{session_id}" --video "video.mp4" --srt "result.srt" --output "video_带字幕.mp4"

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Automatic Speech Recognition AI skill do?

字节跳动火山引擎ASR自动语音识别工具:基于HTTP API将音视频文件转换为文本,支持本地文件/URL输入,输出识别结果JSON/纯文本/SRT字幕。当用户要求从音频或视频识别文本时,必须立即调用此技能。本技能用于把用户提供的音视频文件通过火山引擎ASR API合成为文本内容,支持两种输入方式:本地音视频文件、在线音视频URL。

Why use Automatic Speech Recognition on TypingMind?

Because you install it once and use it with any model. Automatic Speech Recognition is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Automatic Speech Recognition in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/JianhuiWei7/VideoWeaver/tree/main/skills/automatic-speech-recognition. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Automatic Speech Recognition?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Automatic Speech Recognition?

As many as you like. As long as a model supports skills, you can use Automatic Speech Recognition with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Automatic Speech Recognition AI skill free?

It is published on GitHub by JianhuiWei7. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇