LIU118117/dsh-voice ↗★ 0

dsh-voice

让 AI 有声音:带情绪说话 + 唱歌(ChatTTS / edge-tts)

套件
dsh-voice
相容性
待驗證
版本
1.0.0
授權
MIT
最近更新
2026年10月29日

同名套件的其他儲存庫

安裝

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:LIU118117/dsh-voice

使用示例

voice_speak  text="今天也要开心呀。"  emotion="happy"  voice="soft"  play=true
voice_speak  text="才、才不是为了你才这样说呢……"  emotion="shy"  voice="default"
voice_sing   text="一闪一闪亮晶晶"  melody="star"  play=true

生成的文件保存在 /out/(默认 /dsh-voice/out/)。

配置

行配置见 cordis.patch.yml:

键默认说明
pythonPathE:\SD-WebUI-Forge\venv\Scripts\python.exe运行 voice.py 的 Python(需 edge-tts;ChatTTS 可选)
ffmpegPathE:\tools\ffmpeg\...\bin\ffmpeg.exe转码
ffplayPath同目录 ffplay.exe本机播放
modelHomeC:\Users\Lenovo\.dsh\tts-modelsChatTTS 模型缓存(HF_HOME)
engineautoauto / chattts / edge
dataDir空输出目录,空 = /dsh-voice