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

symboly Error问题 #120

Open
ice-lynn opened this issue Aug 10, 2023 · 7 comments
Open

symboly Error问题 #120

ice-lynn opened this issue Aug 10, 2023 · 7 comments

Comments

@ice-lynn
Copy link

File "/root/vits_chinese/text/init.py", line 16, in
sequence = [_symbol_to_id[symbol] for symbol in cleaned_text.split()]
KeyError: 'ei

请问如上问题为什么会出现呢?如何解决呢?

@MaxMax2016
Copy link
Collaborator

是输入什么句子出现这个问题的呢?

@ice-lynn
Copy link
Author

File "/root/vits_chinese/data_utils.py", line 65, in get_audio_text_pair
text = self.get_text(text)
File "/root/vits_chinese/data_utils.py", line 88, in get_text
text_norm = cleaned_text_to_sequence(text)
File "/root/vits_chinese/text/init.py", line 17, in cleaned_text_to_sequence
sequence = [_symbol_to_id[symbol] for symbol in cleaned_text.split()]
File "/root/vits_chinese/text/init.py", line 17, in
sequence = [_symbol_to_id[symbol] for symbol in cleaned_text.split()]
KeyError: 'en'

出现错误时输入最近的三个句子如下:
sil z en3 d ang1 g uo2 j ia1 zh u3 x i2 sil
sil ch ang4 ^ i1 sh ou3 q ian4 f u1 ^ ai4 sil
sil h uan4 ch eng2 zh en1 b u4 r ong2 ^ i4 sil

猜测是加粗的en?

@ice-lynn
Copy link
Author

symbols存在"en"该音素,为什么仍会报错呢?

@MaxMax2016
Copy link
Collaborator

有en1~5 没en

@ice-lynn
Copy link
Author

输入的句子中也没看到单独的en呀,这种问题该如何解决呢?

@MaxMax2016
Copy link
Collaborator

需要确定是哪个字导致的问题

@xiaoyin199
Copy link

遇到同样问题,请问怎么解决呢,没有思路;怎么样才能确认问题呢;

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

3 participants