podcast-transcriber
Transcribes, formats, and cleans up long-form podcast audio transcripts with accurate speaker diarization, punctuation restoration, and noise removal. Use when turning audio discussions into readable text archives.
1How It Works & Mechanism
Automated transcript formatting with clear speaker labels and timestamp alignment.
case "$PLATFORM" in bilibili|youtube) if ! command -v yt-dlp &>/dev/null; then echo "[download] yt-dlp 未安装,正在安装..." pip3 install yt-dlp -q fi
Disfluency and filler word removal (um, uh, repetitions) without altering meaning.
| File Size | Diarization | Engine | |-----------|-------------|--------| | below 25MB | no | Groq Whisper | | below 25MB | yes | Volcengine BigModel | | over 25MB | any | Volcengine BigModel |
Domain terminology and proper noun correction based on episode context.
- **为什么要 TOS 中转**:火山 BigModel ASR 只接受 URL,不支持 multipart 上传。所以 ≥25MB 的音频必须先传 TOS → 拿预签名 URL → 提交 → 用完删除。
Structured chapter breakdown with topical timestamp markers.
STATUS=$(curl -s -o /dev/null -w "%{http_code}" -X POST "$ASR_ENDPOINT" \ -H 'Content-Type: application/json' \ -H "X-Api-Key: $VOLC_ASR_KEY"
Groq Whisper 极速轻量转录通道:小于 25MB 且无需分离时直接向 api.groq.com 发送 multipart 表单,并格式化为带 frontmatter 的 Markdown。
if [ "$SIZE_MB" -lt 25 ] && [ "$DIARIZATION" = "false" ] && [ -n "$GROQ_API_KEY" ]; then echo "引擎: Groq Whisper (短音频,免费)" curl -s https://api.groq.com/openai/v1/audio/transcriptions \ -H "Authorization: Bearer $GROQ_API_KEY" \ -F "file=@$AUDIO_FILE" \ -F "model=whisper-large-v3-turbo" \ -F "response_format=text" \ -F "language=zh" \ -o /tmp/groq_transcript.txt
跨平台输出路由与权限兼容:将生成的逐字稿规范命名并落盘,优先使用 macOS ditto 命令规避 iCloud Drive 等受限目录权限,失败时降级到 cp。
mkdir -p "$OUTPUT_DIR" # ditto 在 macOS 上能穿透 iCloud Drive 等受限路径的写权限;非 macOS / ditto 失败时回落到 cp ditto "$MD_FILE" "$OUTPUT_DIR/$FILENAME" 2>/dev/null || cp "$MD_FILE" "$OUTPUT_DIR/$FILENAME" echo "[save] ✅ $OUTPUT_DIR/$FILENAME"
分发打包与环境自检工具链:提供 setup.sh 检查 Python/ffmpeg/curl/TOS 等依赖与凭证,build.sh 打包为 .skill 归档便于直接载入 Claude Code。
rm -rf "$STAGE" "$OUTPUT" mkdir -p "$STAGE/config" cp "$ROOT/SKILL.md" "$STAGE/" cp -r "$ROOT/scripts" "$STAGE/" cp -r "$ROOT/references" "$STAGE/" cp "$ROOT/config/credentials.env.example" "$STAGE/config/" cd "$DIST" zip -qr "$OUTPUT" podcast-transcriber/ rm -rf "$STAGE"
2Core Capabilities
3External Dependencies
| Kind | Dependency / Endpoint |
|---|---|
| cli | yt-dlp |
| cli | ffmpeg / ffprobe |
| package | tos (Volcengine TOS Python SDK) |
| network | 火山引擎 BigModel ASR 提交与查询端点 |
| network | 火山引擎 TOS 对象存储外网域名 |
| network | Groq Whisper 转录接口 |
4Recommended Governance & Evidence
5Second-Pass Verification
- [ok] 双引擎选路阈值与回退机制 — transcribe.sh 中明确按 SIZE_MB < 25 且 DIARIZATION == false 且存在 GROQ_API_KEY 路由到 Groq Whisper,其余分支统一走火山 BigModel,代码与文档描述严格吻合。
- [ok] TOS 预签名中转与临时对象删除 — upload_tos.py 生成 presigned_url 供 ASR 读取;transcribe.sh Step 5 调用 TosClientV2 delete_object 删除对应 key,具备即用即删保障。
- [ok] 多平台下载与爬虫实现 — download.sh 对 bilibili/youtube 调用 yt-dlp,对小宇宙正则抽取 og:audio 音频,直链用 curl,异常均 exit 1 退出。
- [ok] eval 参数注入风险点核实 — transcribe.sh 第 766 行使用了 `eval "python3 $SCRIPT_DIR/format_output.py /tmp/asr_result.json $FORMAT_ARGS"`,在注入面与风险中如实披露。
- [ok] 凭证加载路径核实 — asr_submit.sh、transcribe.sh、upload_tos.py 均统一按 config/credentials.env 与 ~/.podcast-transcriber/credentials.env 双路径探测加载。
- [ok] 元数据与许可证核实 — 仓库根 LICENSE 为 MIT,stars=5,commit 为 c9e2ec1870b2eb134245de3e1f985f416aa01977,与核定值一致。
6Verdict & Scenarios
Preview this skill in an interactive chat playground. Generic LLM evaluation trial.
💬 Open Chat Trial (Preview)