Voice Transcribe
Transcribe audio files using OpenAI's gpt-4o-mini-transcribe model with vocabulary hints and text replacements. Requires uv (https://docs.astral.sh/uv/).
clawhub install voice-transcribe音视频转文字技能,使用 Whisper 进行语音识别。支持多种音视频格式,可输出纯文本、SRT/VTT 字幕或 JSON 格式。适用于会议记录、视频字幕生成、采访整理、播客转录等场景。
# Install Skill (downloads SKILL.md to .claude/skills/) clawhub install audio-video-to-text # Then just tell Claude: "use Audio Video To Text to help me..."
# Same install command — works with all SKILL.md-compatible AI coding tools clawhub install audio-video-to-text
This Skill is compatible with the OpenClaw standard. After installation, a SKILL.md file is auto-generated, usable by any OpenClaw-compatible AI Agent (Claude Code, Cursor, Windsurf, etc.).
pip install openai-whisper ffmpeg-python
# Ubuntu/Debian
sudo apt-get install ffmpeg
# macOS
brew install ffmpeg
# Windows
# 从 https://ffmpeg.org/download.html 下载
python scripts/transcribe.py <输入文件> [输出文件] [选项]
# 转录 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, large | base |
| --language | 语言代码:zh, en, ja 等 | 自动检测 |
| --output-format | 输出格式:txt, srt, vtt, json | txt |
| --device | 运行设备:cpu, cuda | cpu |
| --keep-audio | 保留临时音频文件 | false |这是转录的完整文本内容,适合阅读和编辑。
1
00:00:01,000 --> 00:00:04,000
这是第一句字幕。
2
00:00:04,500 --> 00:00:07,000
这是第二句字幕。
WEBVTT
00:00:01.000 --> 00:00:04.000
这是第一句字幕。
00:00:04.500 --> 00:00:07.000
这是第二句字幕。
--device cudascripts/transcribe.py - 主转录脚本clawhub audio-video-to-text --input meeting.mp4 --output meeting.srt --format srt --language zhCreate chapters, highlights, and show notes from podcast audio or transcripts. Use when a user wants chapter markers, highlight clips, or show-note drafts without publishing or distribution actions.
clawhub install podcast-chaptering-highlights