Documentation
README
播客转录 Skill
将播客音频下载并转录为文字,存为 Markdown 文件。支持小宇宙、喜马拉雅等平台。
环境要求
# Python 3.9+
python -m venv .venv
source .venv/bin/activate
# 依赖
pip install faster-whisper
# 系统依赖
# macOS: brew install ffmpeg
# Ubuntu: sudo apt install ffmpeg
使用方法
单集转录
python scripts/transcribe.py "https://www.xiaoyuzhoufm.com/episode/xxxxx"
批量转录(RSS)
python scripts/batch_transcribe.py --rss-url "http://www.ximalaya.com/album/xxxxx.xml" --count 10
流程
Step 1: 下载音频
支持多种来源:
- 小宇宙单集链接(自动从页面提取音频 URL)
- 喜马拉雅链接
- 直接音频 URL(.mp3/.m4a/.wav)
- RSS feed 中的音频链接
注意:小宇宙/喜马拉雅等平台会从页面 HTML 中自动解析 og:audio、<audio> 标签或内嵌 JSON 获取真实音频地址,无需手动提取。
Step 2: faster-whisper 转录
This is the opening of the README. Read the full README on GitHub.