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

Lỗi gặp phải khi chuyển văn bản thành giọng nói (TTS) #727

Open
samurai815 opened this issue Jan 21, 2024 · 0 comments
Open

Comments

@samurai815
Copy link

samurai815 commented Jan 21, 2024

Mình gặp phải lỗi mong được hỗ trợ, xin cảm ơn.

Mình đang cài phiên bản mới nhất underthesea v6.8.0 chạy windows 10, Anacoda mới nhất, python 3.11 và cài theo như hướng dẫn:
pip install underthesea
pip install underthesea[wow]
underthesea download-model VIET_TTS_V0_4_1

Khi mình chạy dòng lệnh như hướng dẫn:
underthesea say "Cựu binh Mỹ trả nhật ký nhẹ lòng khi thấy cuộc sống hòa bình tại Việt Nam"

Thì gặp lỗi này:
Traceback (most recent call last):
...
say(test)
File "C:\Users...\anaconda3\Lib\site-packages\underthesea\pipeline\say_init_.py", line 31, in say
y = text_to_speech(text)
^^^^^^^^^^^^^^^^^^^^
File "C:\Users...\anaconda3\Lib\site-packages\underthesea\pipeline\say_init_.py", line 19, in text_to_speech
mel = text2mel(
^^^^^^^^^
File "C:\Users...\anaconda3\Lib\site-packages\underthesea\pipeline\say\viettts_\nat\text2mel.py", line 95, in text2mel
tokens = text2tokens(text, lexicon_fn)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users...\anaconda3\Lib\site-packages\underthesea\pipeline\say\viettts_\nat\text2mel.py", line 41, in text2tokens
lexicon = load_lexicon(lexicon_fn)
^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users...\anaconda3\Lib\site-packages\underthesea\pipeline\say\viettts_\nat\text2mel.py", line 19, in load_lexicon
lines = open(fn, "r").readlines()
^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users...\anaconda3\Lib\encodings\cp1252.py", line 23, in decode
return codecs.charmap_decode(input,self.errors,decoding_table)[0]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
UnicodeDecodeError: 'charmap' codec can't decode byte 0x81 in position 3913: character maps to <undefined>

Cảm ơn bạn đã giúp đở.

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