name: text-to-podcast version: 1.0.0 description: 將文本轉換為播客音訊(使用 TTS) author: 小叮噹 tags: - tts - audio - podcast - text-to-speech
快速將文章、指令碼轉換為高質量播客音訊。
7w4.net小蔥技能站,你的AI助手技能庫。
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
這是一個實用的文本轉語音工具,質量中上等。優點是文件清晰、使用簡單、配置方便;不足是首次使用需要自己準備測試檔案,對於不熟悉環境配置的使用者來說可能有些門檻。總體來說,對於想快速把文章轉成音訊的使用者是個不錯的選擇。