Generate podcast episodes from user-provided content or by searching the web for specified topics. If user uploads a text file/article, creates a dual-host dialogue podcast (or single-host upon request). If no content is provided, searches the web for information about the user-specified topic and generates a podcast. Duration scales with content size (3-20 minutes, ~240 chars/min). Uses z-ai-web-dev-sdk for LLM script generation and TTS audio synthesis. Outputs both a podcast script (Markdown) and a complete audio file (WAV).
根据用户提供的资料或联网搜索结果,自动生成播客脚本与音频。
该 Skill 适用于:
本 Skill 由以下文件组成:
generate.ts
统一入口(支持文件模式和搜索模式)
readme.md
使用说明文档
SKILL.md
当前文件,描述 Skill 能力、边界与使用约定
package.json
Node.js 项目配置与依赖
tsconfig.json
TypeScript 编译配置
方式 1:文件上传
方式 2:联网搜索
podcast_script.md
播客脚本(Markdown 格式,可人工编辑)
podcast.wav
最终拼接完成的播客音频
不输出中间文件(如 segments.jsonl、meta.json 等)
不需要 z-ai CLI
npm installnpm run generate -- --input=test_data/material.txt --out_dir=out# 根据主题搜索并生成播客
npm run generate -- --topic="最新AI技术突破" --out_dir=out
# 指定搜索主题和时长
npm run generate -- --topic="量子计算应用场景" --out_dir=out --duration=8
# 搜索并生成单人播客
npm run generate -- --topic="气候变化影响" --out_dir=out --mode=single-male| 参数 | 说明 | 默认值 |
|---|---|---|
--input | 输入资料文件路径(与 --topic 二选一) | - |
--topic | 搜索主题关键词(与 --input 二选一) | - |
--out_dir | 输出目录(必需) | - |
--mode | 播客模式:dual / single-male / single-female | dual |
--duration | 手动指定分钟数(3-20);0 表示自动 | 0 |
--host_name | 主持人/主播名称 | 小谱 |
--guest_name | 嘉宾名称 | 锤锤 |
--voice_host | 主持音色 | xiaochen |
--voice_guest | 嘉宾音色 | chuichui |
--speed | 语速(0.5-2.0) | 1.0 |
--pause_ms | 段间停顿毫秒数 | 200 |
| 音色 | 特点 |
|---|---|
| xiaochen | 沉稳专业 |
| chuichui | 活泼可爱 |
| tongtong | 温暖亲切 |
| jam | 英音绅士 |
| kazi | 清晰标准 |
| douji | 自然流畅 |
| luodo | 富有感染力 |
z-ai-web-dev-sdk (chat.completions.create)z-ai-web-dev-sdk (audio.tts.create)zai.audio.tts.create()**小谱**:大家好,欢迎收听今天的播客。今天我们来聊一个有趣的话题……
**锤锤**:是啊,这个话题真的很有意思。我最近也在关注……
**小谱**:说到这里,我想给大家举个例子……MIT
07048a9
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.