Community编程与开发github.com

播客生成

将文字内容(文章、报告、文档等)转换为双人对话形式的播客音频,支持中文和英文。

播客生成 是什么?

此技能能够将用户提供的任何文字内容(如文章、技术文档或报告)自动生成为一个高质量的双人对话播客(MP3 格式)及配套的文字稿。工作流程分为两步:首先,AI 会创建一个结构化的 JSON 脚本,其中包含男声和女声两位主播的自然对话;然后,通过调用后端 Python 脚本,使用 TTS(文本转语音)技术合成音频并混合输出为最终的 MP3 文件。该技能特别适合将枯燥的长文本转化为轻松、易听的音频内容,并严格遵循“Hello Deer”播客格式——包括固定的开场白、大约 10 分钟的长度以及交替发言的对话节奏。它支持火山引擎和 MiniMax 两种 TTS 提供商,并通过环境变量自动选择,无需用户在调用时额外配置。生成的播客文件和文字稿会保存在指定目录,并使用 `present_files` 工具分享给用户。

兼容平台~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 的新对话。

文档

播客生成技能

概述

本技能将文本内容生成高质量的播客音频。工作流程包括创建结构化的 JSON 脚本(对话稿)以及通过文本转语音合成执行音频生成。

核心能力

  • 将任何文本内容(文章、报告、文档)转换为播客脚本
  • 生成自然的双人对话(男声和女声主播)
  • 使用文本转语音合成语音音频
  • 将音频片段混合成最终的播客 MP3 文件
  • 支持中文和英文内容

工作流程

第1步:理解需求

当用户请求生成播客时,需明确以下内容:

  • 源内容:要转换为播客的文本/文章/报告
  • 语言:英语或中文(基于内容判断)
  • 输出位置:在哪里保存生成的播客
  • 无需检查 /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:播客剧集的标题(可选,用作文字稿中的标题)
  • locale:语言代码 — "en" 表示英语,"zh" 表示中文
  • lines:对话行数组
    • speaker:"male" 或 "female"
    • paragraph:该发言者的对话文本

脚本编写指南

创建脚本 JSON 时,请遵循以下指南:

格式要求

  • 仅两位主播:男声和女声,自然交替
  • 目标时长:约 10 分钟对话(大约 40-60 行)
  • 以男声主播的问候语开头,包含 "Hello Deer"

语气与风格

  • 自然的对话式语言 —— 就像两个朋友聊天
  • 使用随意的表达方式和对话过渡
  • 避免过于正式的语言或学术语气
  • 包含回应、追问和自然的插入语

内容指南

  • 主播之间频繁互动
  • 句子简短,易于口头理解
  • 仅使用纯文本 —— 输出中不要有 Markdown 格式
  • 将技术概念转化为通俗易懂的语言
  • 不包含数学公式、代码或复杂符号
  • 使内容对纯音频听众有吸引力且易于理解
  • 排除元信息,如日期、作者姓名或文档结构

播客生成示例

用户请求:“生成一个关于人工智能历史的播客”

第1步:创建脚本文件 /mnt/user-data/workspace/ai-history-script.json:

{
  "title": "The History of Artificial Intelligence",
  "locale": "en",
  "lines": [
    {"speaker": "male", "paragraph": "Hello Deer! Welcome back to another fascinating episode. Today we're diving into something that's literally shaping our future - the history of artificial intelligence."},
    {"speaker": "female", "paragraph": "Oh, I love this topic! You know, AI feels so modern, but it actually has roots going back over seventy years."},
    {"speaker": "male", "paragraph": "Exactly! It all started back in the 1950s. The term artificial intelligence was actually coined by John McCarthy in 1956 at a famous conference at Dartmouth."},
    {"speaker": "female", "paragraph": "Wait, so they were already thinking about machines that could think back then? That's incredible!"},
    {"speaker": "male", "paragraph": "Right? The early pioneers were so optimistic. They thought we'd have human-level AI within a generation."},
    {"speaker": "female", "paragraph": "But things didn't quite work out that way, did they?"},
    {"speaker": "male", "paragraph": "No, not at all. The 1970s brought what's called the first AI winter..."}
  ]
}

第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:播客音频文件
  • ai-history-transcript.md:播客的可读 Markdown 文字稿

特定模板

仅在用户请求匹配时,读取以下模板文件:

  • 技术讲解 - 用于将技术文档和教程转换为播客

输出格式

生成的播客遵循 "Hello Deer" 格式:

  • 两位主播:一男一女
  • 自然的对话式语言
  • 以 "Hello Deer" 问候语开头
  • 目标时长:约 10 分钟
  • 交替发言以保持互动流畅

输出处理

生成后:

  • 播客和文字稿保存在 /mnt/user-data/outputs/
  • 使用 present_files 工具将播客 MP3 和文字稿 MD 分享给用户
  • 简要描述生成结果(主题、时长、主播)
  • 如需调整,提供重新生成的选项

要求

必须设置以下环境变量:

  • 火山引擎:VOLCENGINE_TTS_APPID 和 VOLCENGINE_TTS_ACCESS_TOKEN
  • MiniMax:MINIMAX_API_KEY
  • VOLCENGINE_TTS_CLUSTER:火山引擎 TTS 集群(可选,默认为 "volcano_tts")

注意事项

  • 始终在单次调用中执行完整流程 —— 无需测试单个步骤或担心超时
  • 脚本 JSON 应与内容语言匹配(en 或 zh)
  • 技术内容应在脚本中简化,以便于音频收听
  • 复杂符号(公式、代码)应在脚本中转换为通俗语言
  • 长内容可能会导致播客时间更长

提供商(火山引擎 / 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.

相关技能