AI-optimized conversational text-to-speech using a local ChatTTS server. Designed to generate highly natural human voices with realistic laughs, breathing, and pauses.
node {baseDir}/scripts/tts.mjs "你要转换的语音文本"
node {baseDir}/scripts/tts.mjs "你好啊![laugh] 今天天气真不错,[uv_break] 我们出去玩吧?" --seed 2048
node {baseDir}/scripts/tts.mjs "写代码真是太开心了!" --seed 1234 --temperature 0.5
--seed : Random seed to fix the speaker's voice/timbre (default: 2048). Change this number to switch between different male/female voices.--temperature : Controls the emotional variance and stability (default: 0.3). Lower is more stable and clear, higher (e.g., 0.6) is more expressive but might mumble.--top_p : Top P sampling parameter for voice generation (default: 0.7).共 1 个版本