Podcast Generator logo

Podcast Generator

Community
staruhub
podcast-generator

用火山引擎 Podcast AI 模型生成中文双人对话播客。当用户要把文章、报告、话题文本转成播客音频、生成对话式音频内容时使用,需要环境具备火山引擎 APP_ID 和 ACCESS_KEY。支持 mp3/ogg_opus/pcm/aac、语速调节、自定义音色、断点续传。不用于:单人朗读式 TTS(用普通语音合成)、英文播客(模型主要优化中文)、播客文稿本身的撰写(先用写作类 skill 产出文本再来)。

Overview

Publisherstaruhub
RepositoryClaudeSkills
Skill namepodcast-generator
Stars
728
Forks
131
Bundled files
2
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 2 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by staruhub on GitHub. Read the source before you install it.

Installation

Install the Podcast Generator AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/staruhub/ClaudeSkills/tree/main/lab/Geek-skills-podcast-generator
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/staruhub/ClaudeSkills.git /tmp/ClaudeSkills
mkdir -p .claude/skills
cp -r /tmp/ClaudeSkills/lab/Geek-skills-podcast-generator .claude/skills/podcast-generator
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Podcast Generator in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Podcast Generator on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Podcast Generator is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

播客生成器(火山引擎双人对话)

把中文文本变成双人对话播客音频,接口封装在 scripts/generate_podcast.py。

验收标准(每次生成完成前自查)

  • 音频文件已落盘,把实际路径与文件大小回报用户
  • 输入文本 ≤25,000 字符(超长必须先与用户确认拆分方案,不能让模型静默截断)
  • 生成中断时使用了 retry_info 续传而不是从头重来
  • 参数选择有依据:分发用 mp3,后期加工用 pcm;教学内容语速 -20 左右
  • 凭证缺失时未硬试:告知用户去火山引擎控制台(speech/service/10028)获取

不做什么

  • 不写播客文稿——输入文本的质量是上游任务(文稿创作找写作类 skill)
  • 不做单人朗读、配音、音效制作
  • 不在输出里回显用户的 ACCESS_KEY

工作流程

1. 准备输入

必需:中文文本(≤25k 字符)+ APP_ID + ACCESS_KEY(无则告知获取方式后停止)。 可选:格式(默认 mp3)/ 采样率(默认 24000)/ 语速(-50~100,0=正常,100=2 倍速)/ 音色 / 开场音乐(默认关)。

最佳文本长度 500-3000 字——播客时长与听感的最优区间;一篇长文建议先摘要再生成。

2. 生成

bash
python scripts/generate_podcast.py \
  --text "播客话题或内容文本" \
  --output "/path/to/output.mp3" \
  --app-id "$VOLC_APP_ID" --access-key "$VOLC_ACCESS_KEY" \
  --format mp3 --sample-rate 24000 --speech-rate 0

脚本会流式接收音频、按轮次显示进度、落盘后返回统计(大小/轮次数)。 Python 模块调用、自定义音色 ID、断点续传 retry_info 的写法见脚本内 docstring 与 references/api_reference.md。

3. 交付

回报文件路径、大小、时长预估;失败时给出具体错误与下一步(见陷阱表)。

已知陷阱

陷阱具体表现应对
超长静默截断>25k 字符时模型直接截断,播客缺尾生成前校验长度,超长先与用户确认拆分或摘要
WebSocket 连不上连接错误/超时依次排查:凭证是否正确 → 网络 → 防火墙是否放行 WebSocket
中断后从头重试长文本生成到一半断了,重跑烧双倍额度从日志取 task_id 和 last_finished_round_id,用 retry_info 续传
输出路径不可写生成完成但保存失败生成前检查目录存在且可写、磁盘空间充足
文本结构差出烂稿口水文本生成的对话生硬输入用结构清晰的中文文本;效果差时先改文本再调参数

依赖与凭证

bash
pip install websockets

凭证从火山引擎控制台获取(console.volcengine.com/speech/service/10028)。建议走环境变量,不要写进代码。

参考文档(按需加载)

  • references/api_reference.md — 完整参数规格、WebSocket 协议细节、事件类型、错误码;协议级调试时读
  • scripts/generate_podcast.py — CLI 与模块双接口,含自动重试与流式接收实现

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Podcast Generator AI skill do?

用火山引擎 Podcast AI 模型生成中文双人对话播客。当用户要把文章、报告、话题文本转成播客音频、生成对话式音频内容时使用,需要环境具备火山引擎 APP_ID 和 ACCESS_KEY。支持 mp3/ogg_opus/pcm/aac、语速调节、自定义音色、断点续传。不用于:单人朗读式 TTS(用普通语音合成)、英文播客(模型主要优化中文)、播客文稿本身的撰写(先用写作类 skill 产出文本再来)。

Why use Podcast Generator on TypingMind?

Because you install it once and use it with any model. Podcast Generator is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Podcast Generator in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/staruhub/ClaudeSkills/tree/main/lab/Geek-skills-podcast-generator. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Podcast Generator?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Podcast Generator?

As many as you like. As long as a model supports skills, you can use Podcast Generator with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Podcast Generator AI skill free?

Yes. It is published on GitHub by staruhub under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇