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

Bug report: Version 6.2.0 TTS say #672

Open
MaNgTts opened this issue Mar 10, 2023 · 1 comment
Open

Bug report: Version 6.2.0 TTS say #672

MaNgTts opened this issue Mar 10, 2023 · 1 comment

Comments

@MaNgTts
Copy link

MaNgTts commented Mar 10, 2023

Thank you for your imazing works. I have an issue with the new version:

say('Lớp vải bọc ghế sofa lòe loẹt sặc sỡ đến mức kể cả cô Mathilda chắc cũng phải dựng tóc gáy lên.') -> VietTTS crashed
If the input string contains "f", "w", "j" or "z", the function crashed with the message: "f" (or w, j, z) is not in the list

Thank you.

@MaNgTts MaNgTts changed the title Bug report: Versionm 6.2.0 TTS say Bug report: Version 6.2.0 TTS say Mar 10, 2023
@fbukevin
Copy link

I got the same issue. Here is some detailed of my sample.

Description

Sentence Cô Brown không thể dịch bài này. Since w is not a character in Vietnamese, the converson function say() throws exception.

Error message

ValueError: 'w' is not in list

Traceback:
File "/Users/fbukevin/Desktop/Project/viethan/lib/python3.11/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 534, in _run_script
    exec(code, module.__dict__)
File "/Users/fbukevin/Desktop/Project/viethan/app.py", line 14, in <module>
    say(viet_text)
File "/Users/fbukevin/Desktop/Project/viethan/lib/python3.11/site-packages/underthesea/pipeline/say/__init__.py", line 31, in say
    y = text_to_speech(text)
        ^^^^^^^^^^^^^^^^^^^^
File "/Users/fbukevin/Desktop/Project/viethan/lib/python3.11/site-packages/underthesea/pipeline/say/__init__.py", line 19, in text_to_speech
    mel = text2mel(
          ^^^^^^^^^
File "/Users/fbukevin/Desktop/Project/viethan/lib/python3.11/site-packages/underthesea/pipeline/say/viettts_/nat/text2mel.py", line 95, in text2mel
    tokens = text2tokens(text, lexicon_fn)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/fbukevin/Desktop/Project/viethan/lib/python3.11/site-packages/underthesea/pipeline/say/viettts_/nat/text2mel.py", line 51, in text2tokens
    p = [phonemes.index(pp) for pp in p]
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/fbukevin/Desktop/Project/viethan/lib/python3.11/site-packages/underthesea/pipeline/say/viettts_/nat/text2mel.py", line 51, in <listcomp>
    p = [phonemes.index(pp) for pp in p]
         ^^^^^^^^^^^^^^^^^^

Reproduce

Bad case
screenshot 20231221 23 33 18@2x

Good case
screenshot 20231221 23 33 34@2x

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