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

unable to pronounce some pinyins #22

Open
cjw414 opened this issue Oct 21, 2021 · 0 comments
Open

unable to pronounce some pinyins #22

cjw414 opened this issue Oct 21, 2021 · 0 comments

Comments

@cjw414
Copy link

cjw414 commented Oct 21, 2021

hello, I was generating wavs from your project with your pretrained models and was generating some audios.
However, I was faced with the following error.

2021-10-21 20:35:45,624 synthesize.py: INFO: processing 413|sil e2 cuo2 shan1 sil|sil 峨 痤 山 sil|10
Traceback (most recent call last):
  File "../../mtts/synthesize.py", line 98, in <module>
    name, tokens = text_processor(line)
  File "/mnt/data1/jungwonchang/projects/mandarin-tts/mtts/text/text_processor.py", line 44, in __call__
    return self._process(input)
  File "/mnt/data1/jungwonchang/projects/mandarin-tts/mtts/text/text_processor.py", line 38, in _process
    tokens = tokenizer.tokenize(seg)
  File "/mnt/data1/jungwonchang/projects/mandarin-tts/mtts/datasets/dataset.py", line 69, in tokenize
    tokens = [self.v2i[t] for t in text.split()]
  File "/mnt/data1/jungwonchang/projects/mandarin-tts/mtts/datasets/dataset.py", line 69, in <listcomp>
    tokens = [self.v2i[t] for t in text.split()]
KeyError: 'cuo2'

after debugging, I found out there was some pinyin sequences that you guys did not offer.

(Pdb) 'cuo2' in self.v2i.keys()
False

think you guys might update some pinyin sequences!

btw, thanks for the great project!

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

1 participant