undertheseanlp / underthesea

Underthesea - Vietnamese NLP Toolkit
http://undertheseanlp.com
GNU General Public License v3.0
1.35k stars 270 forks source link

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

Open samurai815 opened 5 months ago

samurai815 commented 5 months ago

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_tospeech mel = text2mel( ^^^^^^^^^ File "C:\Users...\anaconda3\Lib\site-packages\underthesea\pipeline\say\viettts\nat\text2mel.py", line 95, in text2mel tokens = text2tokens(text, lexiconfn) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users...\anaconda3\Lib\site-packages\underthesea\pipeline\say\viettts\nat\text2mel.py", line 41, in text2tokens lexicon = load_lexicon(lexiconfn) ^^^^^^^^^^^^^^^^^^^^^^^^ 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 đở.