Documentation
README
YouTube 视频转录 + 翻译 Skill
字幕优先:先抓官方/自动字幕(秒级、免 GPU),抓不到再下载音频用 SenseVoice-Small 转录;英文内容自动翻译成中文,输出中英对照 Markdown。加 --no-subtitle 可强制走音频转录。
为什么需要这个
YouTube 有大量优质英文内容,但很多人没时间看完或语言不通。这个 skill:
- 转录视频为文字(支持中英文)
- 英文内容自动翻译成高质量中文
- 输出中英对照,方便学习
环境要求
# Python 3.9+
python -m venv .venv
source .venv/bin/activate
# 依赖
pip install funasr modelscope torch torchaudio
# 系统依赖
# macOS: brew install ffmpeg yt-dlp
# Ubuntu: sudo apt install ffmpeg && pip install yt-dlp
# 翻译功能(可选,英文视频需要)
export DEEPSEEK_API_KEY="your-api-key"
使用方法
This is the opening of the README. Read the full README on GitHub.