name: text-to-podcast version: 1.0.0 description: 将文本转换为播客音频(使用 TTS) author: 小叮当 tags: - tts - audio - podcast - text-to-speech
快速将文章、脚本转换为高质量播客音频。
7w4.net有更好的技能插件。
clawhub install text-to-podcast
cd ~/.openclaw/workspace/skills/text-to-podcast
./install.sh
export OPENAI_API_KEY="your-key"
# 单个文件
text-to-podcast convert script.md --voice alloy --output podcast.mp3
# 批量
text-to-podcast batch ./scripts/ --output ./podcasts/
# 预览(10秒)
text-to-podcast convert script.md --preview
# 调整语速
text-to-podcast convert script.md --speed 1.2
| 参数 | 类型 | 必需 | 描述 |
|---|---|---|---|
input |
路径 | 是 | 输入文本文件 |
--voice |
选项 | 否 | 声音:alloy/echo/fable/onyx/nova/shimmer(默认:alloy) |
--output |
路径 | 否 | 输出MP3文件 |
--speed |
浮点数 | 否 | 语速倍数(0.5-2.0,默认:1.0) |
--preview |
布尔 | 否 | 预览模式(只生成前10秒) |
--model |
选项 | 否 | TTS 模型:tts-1/tts-1-hd(默认:tts-1) |
MIT
这是一个实用的文本转语音工具,质量中上等。优点是文档清晰、使用简单、配置方便;不足是首次使用需要自己准备测试文件,对于不熟悉环境配置的用户来说可能有些门槛。总体来说,对于想快速把文章转成音频的用户是个不错的选择。