2noise / ChatTTS

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

Normalizer reference before assignment #270

Closed iplayfast closed 2 months ago

iplayfast commented 2 months ago

Traceback (most recent call last): File "", line 1, in File "/home/chris/ai/tts/ChatTTS/ChatTTS/core.py", line 146, in infer self.init_normalizer(_lang) File "/home/chris/ai/tts/ChatTTS/ChatTTS/core.py", line 199, in init_normalizer self.normalizer[lang] = partial(Normalizer(input_case='cased', lang=lang).normalize, verbose=False, punct_post_process=True) UnboundLocalError: local variable 'Normalizer' referenced before assignment

libukai commented 2 months ago
conda install -c conda-forge pynini=2.1.5 && pip install nemo_text_processing

缺少相关依赖,请按照官方代码中的指引安装

like-yo commented 2 months ago

找到chatTTS的core.py的143行到149行注释掉

jeffscottward commented 2 months ago

╰─ $ conda install -c conda-forge pynini=2.1.5 && pip install nemo_text_processing Channels:

LibMambaUnsatisfiableError: Encountered problems while solving:

Could not solve for environment specs The following packages are incompatible ├─ libcxx 14.0.6. is requested and can be installed; ├─ pin-1 is installable and it requires │ └─ python 3.12. , which can be installed; └─ pynini 2.1.5* is not installable because there are no viable options ├─ pynini 2.1.5 would require │ └─ libcxx >=15.0.7 , which conflicts with any installable versions previously reported; ├─ pynini 2.1.5 would require │ └─ python >=3.10,<3.11.0a0 _cpython, which conflicts with any installable versions previously reported; ├─ pynini 2.1.5 would require │ └─ python >=3.11,<3.12.0a0 _cpython, which conflicts with any installable versions previously reported; ├─ pynini 2.1.5 would require │ └─ python >=3.8,<3.9.0a0 _cpython, which conflicts with any installable versions previously reported; └─ pynini 2.1.5 would require └─ python >=3.9,<3.10.0a0 *_cpython, which conflicts with any installable versions previously reported.