2noise / ChatTTS

A generative speech model for daily dialogue.
https://2noise.com
GNU Affero General Public License v3.0
30.72k stars 3.34k forks source link

请问大家是如何处理数字的 #292

Closed guiji101 closed 1 month ago

guiji101 commented 3 months ago

阿拉伯数字做inference的时候会出现乱码,例如下面一段话里的年份

从孔子(公元前551—前479年)起,周代的最后三个世纪出现了成体系的思辨思想,它主要体现在六七个思想学派中,但别的不容易归于任何学派的个别思想家也表现出这种思想

想请教一下这种问题通常是如何解决的。是否需要做预处理,把阿拉伯数字转换为对应汉字 (如 551 -> 五百五十一)?

wangfeng35 commented 3 months ago

可以参考 https://github.com/jianchang512/ChatTTS-ui 或者 https://github.com/CyberWon/ChatTTS-API/blob/api/api.md 做预处理

github-actions[bot] commented 1 month ago

This issue was closed because it has been inactive for 15 days since being marked as stale.