RVC-Boss / GPT-SoVITS

1 min voice data can also be used to train a good TTS model! (few shot voice cloning)
MIT License
32.22k stars 3.71k forks source link

unbantu上运行api.py #1367

Open hjj-lmx opened 1 month ago

hjj-lmx commented 1 month ago

[nltk_data] Error loading averaged_perceptron_tagger: <urlopen error [nltk_data] [Errno 111] Connection refused> [nltk_data] Error loading cmudict: <urlopen error [Errno 111] [nltk_data] Connection refused> Traceback (most recent call last): File "/home/vipuser/anaconda3/envs/GPTSoVits/lib/python3.9/site-packages/nltk/corpus/util.py", line 84, in __load root = nltk.data.find(f"{self.subdir}/{zip_name}") File "/home/vipuser/anaconda3/envs/GPTSoVits/lib/python3.9/site-packages/nltk/data.py", line 583, in find raise LookupError(resource_not_found) LookupError:


Resource cmudict not found. Please use the NLTK Downloader to obtain the resource:

import nltk nltk.download('cmudict')

For more information see: https://www.nltk.org/data.html

Attempted to load corpora/cmudict.zip/cmudict/

Searched in:

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/usr/local/UD/GPT-SoVITS/api.py", line 166, in from text.cleaner import clean_text File "/usr/local/UD/GPT-SoVITS/GPT_SoVITS/text/cleaner.py", line 1, in from text import chinese, japanese, cleaned_text_to_sequence, symbols, english File "/usr/local/UD/GPT-SoVITS/GPT_SoVITS/text/english.py", line 358, in _g2p = en_G2p() File "/usr/local/UD/GPT-SoVITS/GPT_SoVITS/text/english.py", line 252, in init super().init() File "/home/vipuser/anaconda3/envs/GPTSoVits/lib/python3.9/site-packages/g2p_en/g2p.py", line 71, in init self.cmu = cmudict.dict() File "/home/vipuser/anaconda3/envs/GPTSoVits/lib/python3.9/site-packages/nltk/corpus/util.py", line 121, in getattr self.load() File "/home/vipuser/anaconda3/envs/GPTSoVits/lib/python3.9/site-packages/nltk/corpus/util.py", line 86, in load raise e File "/home/vipuser/anaconda3/envs/GPTSoVits/lib/python3.9/site-packages/nltk/corpus/util.py", line 81, in load root = nltk.data.find(f"{self.subdir}/{self.name}") File "/home/vipuser/anaconda3/envs/GPTSoVits/lib/python3.9/site-packages/nltk/data.py", line 583, in find raise LookupError(resource_not_found) LookupError:


Resource cmudict not found. Please use the NLTK Downloader to obtain the resource:

import nltk nltk.download('cmudict')

For more information see: https://www.nltk.org/data.html

Attempted to load corpora/cmudict

Searched in:

XXXXRT666 commented 1 month ago

缺少nltk,按照报错提示下载