← ClaudeAtlas

podcast-to-bloglisted

This skill should be used when the user says "podcast 轉文章", "幫我把這集 podcast 寫成文章", "podcast 逐字稿", "轉錄 podcast", "podcast to blog", "聽這集幫我寫筆記", "transcribe audio", "音檔轉文字", "mp3 轉文章", "convert audio to blog post", "RSS feed 轉文章", or provides an Apple Podcasts URL, audio file path, or RSS feed URL and wants a blog post or transcript generated from it.
jurislm/jurislm-tools · ★ 0 · AI & Automation · score 59
Install: claude install-skill jurislm/jurislm-tools
# Podcast to Blog — 完整工作流 將 Apple Podcasts 連結轉換為逐字稿,再生成高品質部落格文章,最後可存入 Notion。 ## 前置需求檢查 在開始前,執行以下檢查: ```bash python3 -m pip show openai-whisper >/dev/null 2>&1 && echo "Whisper OK" || echo "NEED_INSTALL" ``` 若輸出 `NEED_INSTALL`,執行安裝: ```bash pip install openai-whisper --break-system-packages ``` 同時確認 `ffmpeg` 已安裝: ```bash ffmpeg -version 2>/dev/null || echo "NEED_FFMPEG" ``` 若輸出 `NEED_FFMPEG`,依作業系統安裝:`brew install ffmpeg`(macOS)或 `sudo apt-get install -y ffmpeg`(Ubuntu)。 ## 工作流程 ### Step 1:解析 Apple Podcasts URL 取得音檔 先找到 plugin 安裝的腳本目錄,再執行腳本下載音檔: ```bash SCRIPT_DIR=$(find ~/.claude/plugins -path "*/podcast-to-blog/scripts" -type d 2>/dev/null | head -1) if [ -z "$SCRIPT_DIR" ]; then echo "ERROR: 找不到 podcast-to-blog scripts,請確認 plugin 已正確安裝(claude plugin install podcast-to-blog@jurislm-tools)" exit 1 fi python3 "${SCRIPT_DIR}/fetch_podcast_audio.py" "<APPLE_PODCASTS_URL>" /tmp/podcast_audio.mp3 ``` 腳本會: 1. 從 Apple Podcasts URL 提取 podcast ID 和 episode ID 2. 呼叫 Apple iTunes Lookup API 取得 RSS Feed URL 3. 解析 RSS Feed 找到對應集數的音檔 enclosure URL 4. 下載音檔到指定路徑 如果腳本失敗,提示使用者手動提供音檔的直接下載 URL,然後用 `curl -L -o /tmp/podcast_audio.mp3 "<DIRECT_URL>"` 下載。 ### Step 2:用 Whisper 轉錄 重新定位腳本目錄,再執行轉錄腳本: ```bash SCRIPT_DIR=$(find ~/.claude/plugins -path "*/podcast-to-blog/scripts" -type d 2>/dev/null | head -1) python3 "${SCRIPT_DIR}/transcribe.py" /tmp/podcast_audio.mp3 /tmp/podcast_transcript.txt --language zh --model medium ``` 參數說明: - `--language zh`:指定中文以提升辨識準確度 - `--model medium