Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

求助GPT-Sovits的api_v2.py接口不能中英混读,有没有大佬知道怎么解决的 #353

Open
kkkwjr opened this issue Jan 7, 2025 · 1 comment

Comments

@kkkwjr
Copy link

kkkwjr commented Jan 7, 2025

nie_0912.WAV_0008968000_0009176640.wav Big data technologies enable organization to process. Traceback (most recent call last):
File "/home/xrk/data2/sun_ai_dev/GPT-SoVITS-v2/GPT_SoVITS/prepare_datasets/1-get-text.py", line 92, in process
phones, word2ph, norm_text = clean_text(
File "/home/xrk/data2/sun_ai_dev/GPT-SoVITS-v2/GPT_SoVITS/text/cleaner.py", line 46, in clean_text
phones = language_module.g2p(norm_text)
File "/home/xrk/data2/sun_ai_dev/GPT-SoVITS-v2/GPT_SoVITS/text/english.py", line 365, in g2p
phone_list = _g2p(text)
File "/home/xrk/data2/sun_ai_dev/GPT-SoVITS-v2/GPT_SoVITS/text/english.py", line 272, in call
tokens = pos_tag(words) # tuples of (word, tag)
File "/home/xrk/miniconda3/envs/gpt_sovits_v2/lib/python3.9/site-packages/nltk/tag/init.py", line 168, in pos_tag
tagger = _get_tagger(lang)
File "/home/xrk/miniconda3/envs/gpt_sovits_v2/lib/python3.9/site-packages/nltk/tag/init.py", line 110, in _get_tagger
tagger = PerceptronTagger()
File "/home/xrk/miniconda3/envs/gpt_sovits_v2/lib/python3.9/site-packages/nltk/tag/perceptron.py", line 183, in init
self.load_from_json(lang)
File "/home/xrk/miniconda3/envs/gpt_sovits_v2/lib/python3.9/site-packages/nltk/tag/perceptron.py", line 274, in load_from_json
with open(loc + TAGGER_JSONS[lang]["weights"]) as fin:
TypeError: unsupported operand type(s) for +: 'ZipFilePathPointer' and 'str'

大概类似这种报错,遇到英文音频就会报错

@caoyang-lqp
Copy link

缺少nltk_data数据包,手动下载放在系统根目录下就行

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants