Audio Video To Text logo

Audio Video To Text

Community
bighardperson
audio-video-to-text

音视频转文字技能,使用 Whisper 进行语音识别。支持多种音视频格式,可输出纯文本、SRT/VTT 字幕或 JSON 格式。适用于会议记录、视频字幕生成、采访整理、播客转录等场景。

Overview

Publisherbighardperson
Repositorycomputer-science-skills-collection
Skill nameaudio-video-to-text
Stars
66
Forks
10
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 bighardperson on GitHub. Read the source before you install it.

Installation

Install the Audio Video To Text 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/bighardperson/computer-science-skills-collection/tree/main/skills/audio-video-to-text
  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/bighardperson/computer-science-skills-collection.git /tmp/computer-science-skills-collection
mkdir -p .claude/skills
cp -r /tmp/computer-science-skills-collection/skills/audio-video-to-text .claude/skills/audio-video-to-text
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Audio Video To Text 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 Video To Text 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 Video To Text 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.

音视频转文字

概述

本技能使用 OpenAI Whisper 模型将音频/视频文件转换为文字。支持自动语言检测和多种输出格式。

何时使用

  • 会议录音转文字记录
  • 视频内容生成字幕(SRT/VTT)
  • 采访/播客内容整理
  • 语音备忘录转文本
  • 多语言视频翻译准备

快速开始

1. 安装依赖

bash
pip install openai-whisper ffmpeg-python

确保系统已安装 ffmpeg:

bash
# Ubuntu/Debian
sudo apt-get install ffmpeg

# macOS
brew install ffmpeg

# Windows
# 从 https://ffmpeg.org/download.html 下载

2. 基本用法

bash
python scripts/transcribe.py <输入文件> [输出文件] [选项]

3. 示例

bash
# 转录 MP4 视频,输出文本
python scripts/transcribe.py meeting.mp4

# 转录音频,输出 SRT 字幕
python scripts/transcribe.py podcast.mp3 podcast.srt --output-format srt

# 指定中文和较小模型(更快)
python scripts/transcribe.py interview.wav --model tiny --language zh

# 输出带时间戳的 JSON
python scripts/transcribe.py video.mp4 result.json --output-format json

命令行选项

选项说明默认值
--model模型大小:tiny, base, small, medium, largebase
--language语言代码:zh, en, ja 等自动检测
--output-format输出格式:txt, srt, vtt, jsontxt
--device运行设备:cpu, cudacpu
--keep-audio保留临时音频文件false

模型选择指南

模型大小速度精度适用场景
tiny39M最快一般快速测试、短音频
base74M快良好日常使用
small244M中等较好正式场合
medium769M慢很好高精度需求
large1550M最慢最佳专业转录

输出格式说明

TXT(纯文本)

这是转录的完整文本内容,适合阅读和编辑。

SRT(字幕格式)

1
00:00:01,000 --> 00:00:04,000
这是第一句字幕。

2
00:00:04,500 --> 00:00:07,000
这是第二句字幕。

VTT(Web 字幕)

WEBVTT

00:00:01.000 --> 00:00:04.000
这是第一句字幕。

00:00:04.500 --> 00:00:07.000
这是第二句字幕。

JSON(完整数据)

包含分段、时间戳、置信度等完整信息,适合程序处理。

支持的文件格式

音频: MP3, WAV, FLAC, OGG, M4A, AAC

视频: MP4, AVI, MOV, MKV, WEBM, FLV

性能优化建议

  1. 短音频优先用 tiny/base 模型 - 速度快,精度够用
  2. 长内容用 CPU - 避免 GPU 内存不足
  3. 指定语言 - 可提升准确率和速度
  4. 批量处理 - 脚本可循环调用处理多个文件

常见问题

转录质量不佳

  • 尝试更大的模型(small/medium/large)
  • 指定正确的语言代码
  • 确保音频质量清晰

处理速度慢

  • 使用更小的模型(tiny/base)
  • 如有 GPU,使用 --device cuda
  • 缩短音频长度或分段处理

内存不足

  • 使用更小的模型
  • 将长文件分割后分别处理
  • 关闭其他占用内存的程序

脚本

  • scripts/transcribe.py - 主转录脚本

参考资料

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 Video To Text AI skill do?

音视频转文字技能,使用 Whisper 进行语音识别。支持多种音视频格式,可输出纯文本、SRT/VTT 字幕或 JSON 格式。适用于会议记录、视频字幕生成、采访整理、播客转录等场景。

Why use Audio Video To Text on TypingMind?

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

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/bighardperson/computer-science-skills-collection/tree/main/skills/audio-video-to-text. 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 Video To Text?

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 Video To Text?

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

Is the Audio Video To Text AI skill free?

It is published on GitHub by bighardperson. 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 👇