podcast-transcribe · v1.0.0 · 2026-06-02 · sha256 b7446581bd1f0433
podcast-transcribe v1.0.0A
Immutable. This exact content is served forever at /api/v1/blob/b7446581bd1f0433.
---
name: podcast-transcribe
description: >
播客/小宇宙 → 下载 → 转录 → 存为 Markdown 的完整工作流。
支持 RSS 批量下载、单集链接转录。
category: media
triggers:
- 用户发送小宇宙/播客链接
- "帮我转录这个播客"
- "下载播客"
- "批量转录播客"
version: 1.0.0
tags: [media, audio, podcast, transcription, xiaoyuzhou]
---
# 播客转录 Skill
将播客音频下载并转录为文字,存为 Markdown 文件。支持小宇宙、喜马拉雅等平台。
## 环境要求
```bash
# Python 3.9+
python -m venv .venv
source .venv/bin/activate
# 依赖
pip install faster-whisper
# 系统依赖
# macOS: brew install ffmpeg
# Ubuntu: sudo apt install ffmpeg
```
## 使用方法
### 单集转录
```bash
python scripts/transcribe.py "https://www.xiaoyuzhoufm.com/episode/xxxxx"
```
### 批量转录(RSS)
```bash
python scripts/batch_transcribe.py --rss-url "http://www.ximalaya.com/album/xxxxx.xml" --count 10
```
## 流程
### Step 1: 下载音频
支持多种来源:
- 小宇宙单集链接
- 喜马拉雅 RSS 批量下载
- 直接音频 URL
### Step 2: faster-whisper 转录
```python
from faster_whisper import WhisperModel
model = WhisperModel('small', device='cpu', compute_type='int8')
segments, info = model.transcribe(
audio_path,
language='zh',
beam_size=5,
vad_filter=True,
)
```
### Step 3: 生成 Markdown
自动创建带 frontmatter 的 Markdown 文件。
## 性能数据
| 模型 | 速度 (CPU) | 中文准确率 |
|------|------|------|
| faster-whisper tiny | ~149s/1h | 一般 |
| faster-whisper small | ~10min/h | 良好 (~85-90%) |
| faster-whisper large-v3 | ~30-60min/h | 最佳 |
## 已知限制
- CPU 推理较慢,长播客需要较长时间
- 中文准确率约 85-90%,需要人工校对
- 首次运行会下载模型(small: ~461MB)
- 不支持说话人分离
## 参考项目
- [SYSTRAN/faster-whisper](https://github.com/SYSTRAN/faster-whisper) - Whisper 的 CTranslate2 实现
- [OpenAI Whisper](https://github.com/openai/whisper) - 原始 Whisper 模型