Audio Understanding logo

Audio Understanding

Community
JianhuiWei7
audio-understanding

基于字节跳动火山引擎Ark平台的多模态音频理解工具,原生支持音频输入。只要用户提到分析音频内容、理解一段音/视频里的声音、判断说话人音色是否一致、识别 BGM 风格/情绪、判断是否同一个人在说话、做角色音色一致性比对、评估音频是否有断裂/静音/拼接痕迹等需求时,必须优先使用本技能,不要手动抽特征或调本地声纹模型。

Overview

PublisherJianhuiWei7
RepositoryVideoWeaver
Skill nameaudio-understanding
Stars
48
Forks
1
Bundled files
1
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.

  • 1 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 Audio Understanding 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/audio-understanding
  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/audio-understanding .claude/skills/audio-understanding
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Audio Understanding 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 Audio Understanding 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 Audio Understanding 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.

音频理解工具(audio-understanding)

环境依赖: openai、volcenginesdkarkruntime

本技能基于火山引擎 Ark 平台的豆包多模态模型,原生支持音频输入。仿 vision-understanding 设计,统一以"上传文件 → 多模态对话"的方式处理音频。

核心功能

统一音频理解接口

支持同时传入多段音频,按顺序上传到 Ark 并理解,返回统一的描述/判定结果,支持自定义查询提示词。

函数定义
python
def audio_understanding(audio_paths: list[str], prompt: str) -> str:
    """
    统一的音频理解接口,支持同时传入多段音频,按顺序进行理解
    :param audio_paths: 音频文件路径列表,按传入顺序处理 (mp3/wav/flac/m4a/ogg/aac)
    :param prompt: 查询提示词
    :return: 内容描述文本,失败抛异常
    """

典型用法

单段音频内容描述

这段音频里说话人是男是女?语气如何?

多段音频音色一致性比对 (替代本地声纹比对)

传入 N 段人声片段,在 prompt 里告诉模型"第 1 段 / 第 2 段 / ...",让模型判:

  • 是否同一个人在说话
  • 每段音色特征 (音高/语速/口音/情绪)
  • 列出可疑的"听起来像换人"的段落对

BGM 风格判定

传入全片首/中/末 3 段音频,问"三段 BGM 风格是否一致 (节奏/乐器/情绪)?"

音频质量异常检测

单段音频问"是否有明显的静音/卡顿/TTS 拼接痕迹/变调/噪音"

命令行调用示例

  1. 单段音频分析:
bash
python scripts/audio_understanding.py --audio shot_01.wav --prompt "描述说话人的音色特征"
  1. 多段音色一致性比对:
bash
python scripts/audio_understanding.py \
  --audio shot_01.wav shot_03.wav shot_05.wav \
  --prompt "以下 3 段音频按顺序来自同一视频不同镜头。请判断:1) 是否同一说话人? 2) 每段音色描述 3) 列出明显不一致的段落对。输出 JSON: {\"same_speaker\": true/false, \"per_segment\": [...], \"inconsistencies\": [...]}"
  1. 指定模型:
bash
python scripts/audio_understanding.py --audio bgm.wav --prompt "BGM 风格是什么?" --model doubao-seed-2-0-lite-260428

注意事项

  • 模型默认 doubao-seed-2-0-lite-260428(火山方舟当前音频理解官方推荐模型)。doubao-seed-2-0-pro-* 等 pro 变体不支持 input_audio,强行使用会返回 InvalidParameter。如方舟后续开放新的音频模型,可通过 --model 切换。
  • 单次输入的音频段数 / 总时长受 Ark 接口限制 (一般几分钟内安全),长音频请先用 trim-video / ffmpeg 切段。
  • 多段比对时,务必在 prompt 里显式编号 ("第 1 段 / 第 2 段..."),否则模型不知道你传了几段、哪段是哪段。
  • 上传的临时文件会在调用结束后自动清理。

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 Audio Understanding AI skill do?

基于字节跳动火山引擎Ark平台的多模态音频理解工具,原生支持音频输入。只要用户提到分析音频内容、理解一段音/视频里的声音、判断说话人音色是否一致、识别 BGM 风格/情绪、判断是否同一个人在说话、做角色音色一致性比对、评估音频是否有断裂/静音/拼接痕迹等需求时,必须优先使用本技能,不要手动抽特征或调本地声纹模型。

Why use Audio Understanding on TypingMind?

Because you install it once and use it with any model. Audio Understanding 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 Audio Understanding in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/JianhuiWei7/VideoWeaver/tree/main/skills/audio-understanding. 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 Audio Understanding?

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 Audio Understanding?

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

Is the Audio Understanding 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 👇