[2noise/ChatTTS]ModuleNotFoundError: No module named '_pynini',请教用win10运行的大佬们,没有更改pynini任何东西,为啥报这个错?

2024-06-12 968 views
2

INFO:ChatTTS.core:Load from local: ./ChatTTS WARNING:ChatTTS.utils.gpu_utils:No GPU found, use CPU instead INFO:ChatTTS.core:use cpu INFO:ChatTTS.core:vocos loaded. INFO:ChatTTS.core:dvae loaded. INFO:ChatTTS.core:gpt loaded. INFO:ChatTTS.core:decoder loaded. INFO:ChatTTS.core:tokenizer loaded. INFO:ChatTTS.core:All initialized. INFO:ChatTTS.core:All initialized. Traceback (most recent call last): File "E:\Python310\lib\idlelib\run.py", line 578, in runcode exec(code, self.locals) File "D:\IDM Download\ChatTTS-main\test.py", line 10, in wavs = chat.infer(texts, use_decoder=True) File "D:\IDM Download\ChatTTS-main\ChatTTS\core.py", line 145, in infer self.init_normalizer(_lang) File "D:\IDM Download\ChatTTS-main\ChatTTS\core.py", line 182, in init_normalizer from nemo_text_processing.text_normalization.normalize import Normalizer File "E:\Anaconda3/Lib/site-packages\nemo_text_processing\text_normalization__init.py", line 15, in from nemo_text_processing.text_normalization.normalize import Normalizer File "E:\Anaconda3/Lib/site-packages\nemo_text_processing\text_normalization\normalize.py", line 28, in import pynini File "E:\Anaconda3/Lib/site-packages\pynini\init__.py", line 1, in from _pynini import * ModuleNotFoundError: No module named '_pynini'

微信截图_20240531232152

微信图片_20240531232135

回答

7

如果把“from _pynini import ”改为“from pynini import ”,又会提示“AttributeError: module 'pynini' has no attribute 'FstLike'”。

9

这个不能商用,低模加了高噪音,散了吧