Community程式設計與開發github.com

podcast-generation

當使用者要求從文字內容生成、製作或產出 Podcast 時使用此技能。將書面內容轉換為雙主持人對話形式的 Podcast 音訊,並包含自然的對白。

podcast-generation 是什麼?

此技能用於將文章、報告或技術文件等文字內容自動轉換為高品質的 Podcast 音訊。工作流程分為兩個階段:首先依據給定的內容和語言(支援英文與中文)建立結構化的 JSON 腳本,其中包含兩位主持人(一男一女)的對話台詞;接著呼叫後端的 Python 程式,透過 TTS(文字轉語音)合成語音並混合成最終的 MP3 檔案。此技能支援 Volcengine 與 MiniMax 兩種 TTS 供應商,並根據環境變數自動選擇,無需使用者手動設定。主要使用場景包括將技術文件、科普文章或報告製作成約 10 分鐘的對話式 Podcast,並同時產出可讀的文字逐字稿。

相容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/bytedance/deer-flow/tree/main/skills/public/podcast-generation

Installed? Explore more 程式設計與開發 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

在你喜歡的 AI 中提問

開啟一個已預先載入此 Agent Skill 的新對話。

說明文件

Podcast 生成技能

概述

此技能可從文字內容生成高品質的 Podcast 音訊。工作流程包含建立結構化的 JSON 腳本(對話式對白),並透過文字轉語音合成來執行音訊生成。

核心能力

  • 將任何文字內容(文章、報告、文件)轉換為 Podcast 腳本
  • 生成自然的雙主持人對話(男聲與女聲主持人)
  • 使用文字轉語音合成語音音訊
  • 將音訊片段混合成最終的 Podcast MP3 檔案
  • 支援英文與中文內容

工作流程

步驟 1:了解需求

當使用者要求生成 Podcast 時,請確認以下資訊:

  • 來源內容:要轉換為 Podcast 的文字/文章/報告
  • 語言:英文或中文(根據內容而定)
  • 輸出位置:生成的 Podcast 要儲存的位置
  • 您不需要檢查 /mnt/user-data 下的資料夾

步驟 2:建立結構化的腳本 JSON

在 /mnt/user-data/workspace/ 中建立結構化的 JSON 腳本檔案,命名模式為:{描述性名稱}-script.json

JSON 結構如下:

{
  "locale": "en",
  "lines": [
    {"speaker": "male", "paragraph": "對話文字"},
    {"speaker": "female", "paragraph": "對話文字"}
  ]
}

步驟 3:執行生成

呼叫 Python 腳本:

python /mnt/skills/public/podcast-generation/scripts/generate.py \
  --script-file /mnt/user-data/workspace/script-file.json \
  --output-file /mnt/user-data/outputs/generated-podcast.mp3 \
  --transcript-file /mnt/user-data/outputs/generated-podcast-transcript.md

參數說明:

  • --script-file:JSON 腳本檔案的絕對路徑(必要)
  • --output-file:輸出 MP3 檔案的絕對路徑(必要)
  • --transcript-file:輸出逐字稿 Markdown 檔案的絕對路徑(選用,但建議使用)

[!IMPORTANT]

  • 請一次完整執行整個腳本,不要將工作流程分為多個步驟。
  • 腳本會自動處理所有的 TTS API 呼叫與音訊生成。
  • 不要讀取 Python 檔案內容,直接以參數呼叫即可。
  • 務必加上 --transcript-file 參數,以便為使用者產生可讀的逐字稿。
  • TTS 供應商及其併發數會從環境變數自動選取,您無需選擇或調整。

腳本 JSON 格式

腳本 JSON 檔案必須遵循以下結構:

{
  "title": "人工智慧的歷史",
  "locale": "en",
  "lines": [
    {"speaker": "male", "paragraph": "Hello Deer!歡迎回到另一集精彩的節目。"},
    {"speaker": "female", "paragraph": "大家好!今天我們要討論一個令人興奮的主題。"},
    {"speaker": "male", "paragraph": "沒錯!我們要來聊聊..."}
  ]
}

欄位說明:

  • title:Podcast 單集標題(選用,會作為逐字稿的標題)
  • locale:語言代碼 - "en" 代表英文,"zh" 代表中文
  • lines:對話台詞陣列
    • speaker:"male" 或 "female"
    • paragraph:該主持人的對話文字

腳本撰寫指南

建立腳本 JSON 時,請遵循以下指南:

格式要求

  • 僅有兩位主持人:男聲與女聲,自然交替
  • 目標長度:約 10 分鐘的對話(約 40-60 行)
  • 以男聲主持人開場問候 "Hello Deer" 開始

語調與風格

  • 自然、對話式的風格 - 就像兩個朋友聊天
  • 使用隨興的表達與對話轉折
  • 避免過於正式或學術性的語氣
  • 包含回應、追問與自然的插話

內容指南

  • 主持人之間頻繁的來回對話
  • 句子要簡短,便於口語聆聽
  • 僅使用純文字 - 輸出中不要使用 Markdown 格式
  • 將技術概念轉化為平易近人的用語
  • 不要包含數學公式、程式碼或複雜符號
  • 讓內容對純聽眾來說既有趣又易於理解
  • 排除後設資訊,例如日期、作者姓名或文件結構

Podcast 生成範例

使用者要求:「生成一個關於人工智慧歷史的 Podcast」

步驟 1:建立腳本檔案 /mnt/user-data/workspace/ai-history-script.json:

{
  "title": "人工智慧的歷史",
  "locale": "en",
  "lines": [
    {"speaker": "male", "paragraph": "Hello Deer!歡迎回到另一集精彩的節目。今天我們要深入探討一個正在塑造我們未來的主題——人工智慧的歷史。"},
    {"speaker": "female", "paragraph": "哦,我喜歡這個主題!你知道嗎,AI 感覺很現代,但它其實有超過七十年的歷史。"},
    {"speaker": "male", "paragraph": "沒錯!一切都始於 1950 年代。人工智慧這個詞是 John McCarthy 在 1956 年於達特茅斯的一場知名會議上創造的。"},
    {"speaker": "female", "paragraph": "等等,所以他們在那個時代就已經在想機器能夠思考這件事了?太不可思議了!"},
    {"speaker": "male", "paragraph": "對吧?早期的先驅們非常樂觀,他們認為在一代人的時間內就能達到人類水準的 AI。"},
    {"speaker": "female", "paragraph": "但事情並沒有完全照他們想的那樣發展,對吧?"},
    {"speaker": "male", "paragraph": "不,完全沒有。1970 年代迎來了所謂的第一個 AI 寒冬..."}
  ]
}

步驟 2:執行生成:

python /mnt/skills/public/podcast-generation/scripts/generate.py \
  --script-file /mnt/user-data/workspace/ai-history-script.json \
  --output-file /mnt/user-data/outputs/ai-history-podcast.mp3 \
  --transcript-file /mnt/user-data/outputs/ai-history-transcript.md

這將會生成:

  • ai-history-podcast.mp3:Podcast 音訊檔案
  • ai-history-transcript.md:Podcast 的可讀 Markdown 逐字稿

特定範本

僅在使用者要求符合以下情況時,才讀取對應的範本檔案。

輸出格式

生成的 Podcast 遵循「Hello Deer」格式:

  • 兩位主持人:一男一女
  • 自然的對話式對白
  • 以 "Hello Deer" 問候開場
  • 目標長度:約 10 分鐘
  • 主持人之間交替對話,保持互動流暢

輸出處理

生成完成後:

  • Podcast 與逐字稿會儲存在 /mnt/user-data/outputs/ 中
  • 使用 present_files 工具同時將 Podcast MP3 與逐字稿 MD 提供給使用者
  • 提供生成結果的簡短說明(主題、長度、主持人)
  • 如有需要,可提供重新生成的選項

需求

必須設定以下環境變數:

  • 若使用火山引擎:VOLCENGINE_TTS_APPID 與 VOLCENGINE_TTS_ACCESS_TOKEN
  • 若使用 MiniMax:MINIMAX_API_KEY
  • VOLCENGINE_TTS_CLUSTER:火山引擎 TTS 叢集(選用,預設為 "volcano_tts")

注意事項

  • 務必一次完整執行整個管線 - 無需測試個別步驟或擔心超時問題
  • 腳本 JSON 的語言應與內容語言一致(en 或 zh)
  • 技術內容應在腳本中簡化,以利音訊收聽
  • 複雜符號(公式、程式碼)應在腳本中轉換為平實用語
  • 長篇內容可能會產生較長的 Podcast

供應商(火山引擎 / MiniMax)

由環境變數自動選擇:

  • 同時設定了 VOLCENGINE_TTS_APPID 與 VOLCENGINE_TTS_ACCESS_TOKEN → 使用火山引擎 TTS(預設)。
  • 僅設定了 MINIMAX_API_KEY → 使用 MiniMax TTS(/v1/t2a_v2)。
  • 可透過 PODCAST_GENERATION_PROVIDER=volcengine|minimax 強制指定。

MiniMax 覆寫參數:MINIMAX_API_HOST(預設 https://api.minimaxi.com)、 MINIMAX_TTS_MODEL(預設 speech-2.6-hd)、MINIMAX_TTS_VOICE_MALE (預設 male-qn-qingse)、MINIMAX_TTS_VOICE_FEMALE(預設 female-tianmei)。

每種供應商內部自行管理併發數——MiniMax 以單執行緒執行以減少速率限制失敗, 火山引擎則使用 4 個工作者。外部無法調整併發數;暫時性的速率限制會透過自動重試與退回來處理。

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

academic-paper-review

Use this skill when the user requests to review, analyze, critique, or summarize academic papers, research articles, preprints, or scientific publications. Supports comprehensive structured reviews covering methodology assessment, contribution evaluation, literature positioning, and constructive feedback generation. Trigger on queries involving paper URLs, uploaded PDFs, arXiv links, or requests like "review this paper", "analyze this research", "summarize this study", or "write a peer review".

bootstrap

Generate a personalized SOUL.md through a warm, adaptive onboarding conversation. Trigger when the user wants to create, set up, or initialize their AI partner's identity — e.g., "create my SOUL.md", "bootstrap my agent", "set up my AI partner", "define who you are", "let's do onboarding", "personalize this AI", "make you mine", or when a SOUL.md is missing. Also trigger for updates: "update my SOUL.md", "change my AI's personality", "tweak the soul".

bytedance/academic-paper-review

Use this skill when the user requests to review, analyze, critique, or summarize academic papers, research articles, preprints, or scientific publications. Supports comprehensive structured reviews covering methodology assessment, contribution evaluation, literature positioning, and constructive feedback generation. Trigger on queries involving paper URLs, uploaded PDFs, arXiv links, or requests like "review this paper", "analyze this research", "summarize this study", or "write a peer review".

bytedance/chart-visualization

This skill should be used when the user wants to visualize data. It intelligently selects the most suitable chart type from 26 available options, extracts parameters based on detailed specifications, and generates a chart image using a JavaScript script.

bytedance/claude-to-deerflow

Interact with DeerFlow AI agent platform via its HTTP API. Use this skill when the user wants to send messages or questions to DeerFlow for research/analysis, start a DeerFlow conversation thread, check DeerFlow status or health, list available models/skills/agents in DeerFlow, manage DeerFlow memory, upload files to DeerFlow threads, or delegate complex research tasks to DeerFlow. Also use when the user mentions deerflow, deer flow, or wants to run a deep research task that DeerFlow can handle.

bytedance/consulting-analysis

Use this skill when the user requests to generate, create, or write professional research reports including but not limited to market analysis, consumer insights, brand analysis, financial analysis, industry research, competitive intelligence, investment due diligence, or any consulting-grade analytical report. This skill operates in two phases — (1) generating a structured analysis framework with chapter skeleton, data query requirements, and analysis logic, and (2) after data collection by other skills, producing the final consulting-grade report with structured narratives, embedded charts, and strategic insights.

bytedance/data-analysis

Use this skill when the user uploads Excel (.xlsx/.xls) or CSV files and wants to perform data analysis, generate statistics, create summaries, pivot tables, SQL queries, or any form of structured data exploration. Supports multi-sheet Excel workbooks, aggregation, filtering, joins, and exporting results to CSV/JSON/Markdown.

bytedance/deep-research

Use this skill instead of WebSearch for ANY question requiring web research. Trigger on queries like "what is X", "explain X", "compare X and Y", "research X", or before content generation tasks. Provides systematic multi-angle research methodology instead of single superficial searches. Use this proactively when the user's question needs online information.

bytedance/find-skills

Helps users discover and install agent skills when they ask questions like "how do I do X", "find a skill for X", "is there a skill that can...", or express interest in extending capabilities. This skill should be used when the user is looking for functionality that might exist as an installable skill.

bytedance/frontend-design

Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, artifacts, posters, or applications (examples include websites, landing pages, dashboards, React components, HTML/CSS layouts, or when styling/beautifying any web UI). Generates creative, polished code and UI design that avoids generic AI aesthetics.

bytedance/github-deep-research

Conduct multi-round deep research on any GitHub Repo. Use when users request comprehensive analysis, timeline reconstruction, competitive analysis, or in-depth investigation of GitHub. Produces structured markdown reports with executive summaries, chronological timelines, metrics analysis, and Mermaid diagrams. Triggers on Github repository URL or open source projects.

bytedance/image-generation

Use this skill when the user requests to generate, create, imagine, or visualize images including characters, scenes, products, or any visual content. Supports structured prompts and reference images for guided generation.

bytedance/podcast-generation

Use this skill when the user requests to generate, create, or produce podcasts from text content. Converts written content into a two-host conversational podcast audio format with natural dialogue.

bytedance/ppt-generation

Use this skill when the user requests to generate, create, or make presentations (PPT/PPTX). Creates visually rich slides by generating images for each slide and composing them into a PowerPoint file.

bytedance/skill-creator

Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy.

bytedance/surprise-me

Create a delightful, unexpected "wow" experience for the user by dynamically discovering and creatively combining other enabled skills. Triggers when the user says "surprise me" or any request expressing a desire for an unexpected creative showcase. Also triggers when the user is bored, wants inspiration, or asks for "something interesting".

bytedance/vercel-deploy

Deploy applications and websites to Vercel. Use this skill when the user requests deployment actions such as "Deploy my app", "Deploy this to production", "Create a preview deployment", "Deploy and give me the link", or "Push this live". No authentication required - returns preview URL and claimable deployment link.

bytedance/video-generation

Use this skill when the user requests to generate, create, or imagine videos. Supports structured prompts and reference image for guided generation.

bytedance/web-design-guidelines

Review UI code for Web Interface Guidelines compliance. Use when asked to "review my UI", "check accessibility", "audit design", "review UX", or "check my site against best practices".

chart-visualization

This skill should be used when the user wants to visualize data. It intelligently selects the most suitable chart type from 26 available options, extracts parameters based on detailed specifications, and generates a chart image using a JavaScript script.

相關技能