6drf21e / ChatTTS_colab

🚀 一键部署(含离线整合包)!基于 ChatTTS ,支持流式输出、音色抽卡、长音频生成和分角色朗读。简单易用,无需复杂安装。
1.54k stars 193 forks source link

英文字母被 replace_measure 方法错误替换 #37

Open Ringares opened 3 weeks ago

Ringares commented 3 weeks ago

输入 “Beliefs and Instincts", 实际模型 tts 时变为 ['Belief秒andIn秒tinct秒']

image
6drf21e commented 3 weeks ago

是最新版吗? 整合包、colab都正常 image

image

Ringares commented 3 weeks ago

colab 的,Readme 上的链接https://colab.research.google.com/github/6drf21e/ChatTTS_colab/blob/main/chattts_webui_mix.ipynb

image
kerof commented 2 weeks ago

抽卡那里英文有问题,代码写死了用normalize_zh from utils import batch_split, normalize_zh 改成 from utils import batch_split, normalize_zh, detect_language, normalize_en 还有 texts = [normalize_zh(_) for _ in texts.split('\n') if _.strip()] 改成 texts = [normalize_zh(_) if detect_language(_) == 'zh' else normalize_en(_) for _ in texts.split('\n') if _.strip()]