运行时依赖
无特殊依赖
安装命令
点击复制官方npx clawhub@latest install tts
镜像加速npx clawhub@latest install tts --registry https://cn.longxiaskill.com 镜像可用
技能文档
Text-to-Speech (TTS)
Convert text to speech and 生成 audio files (MP3).
Hume AI (Preferred) Preferred Voice: 9e1f9e4f-691a-4bb0-b87c-e306a4c838ef Keys: Stored in 环境 as HUME_API_KEY and HUME_SECRET_KEY. Usage HUME_API_KEY="..." HUME_SECRET_KEY="..." node {baseDir}/scripts/生成_hume_speech.js --text "Hello Jonathan" --输出 "输出.mp3"
OpenAI (Legacy) Preferred Voice: nova Usage: OPENAI_API_KEY="..." node {baseDir}/scripts/生成_speech.js --text "..." --输出 "..." General Notes The scripts print a MEDIA: line with the absolute path to the 生成d file. Use the message 工具 to 发送 the 结果ing file to the user.