lifeiteng / vall-e

PyTorch implementation of VALL-E(Zero-Shot Text-To-Speech), Reproduced Demo https://lifeiteng.github.io/valle/index.html
https://lifeiteng.github.io/valle/index.html
Apache License 2.0
1.99k stars 320 forks source link

infer时出现KeyError: 'tʃ' #166

Closed jin1258804025 closed 12 months ago

jin1258804025 commented 12 months ago

python3 bin/infer.py --text-extractor pypinyin_initials_finals --output-dir infer/demos --checkpoint=${exp_dir}/best-valid-loss.pt --text-prompts "甚至出现交易几乎停滞的情况" --audio-prompts ./prompts/ch_24k.wav --text "XXX"

jin1258804025 commented 12 months ago

命令行添加 --text-extractor pypinyin_initials_finals 英文默认是:espeak

nangying1112 commented 4 months ago

命令行添加 --text-extractor pypinyin_initials_finals 英文默认是:espeak

python3 bin/infer.py --text-extractor pypinyin_initials_finals --output-dir infer/demos --checkpoint=${exp_dir}/best-valid-loss.pt --text-prompts "甚至出现交易几乎停滞的情况" --audio-prompts ./prompts/ch_24k.wav --text "XXX"

I met the same problem. Could you please share your solution? Thanks a lot!

nangying1112 commented 4 months ago

--text-extractor pypinyin_initials_finals

Got it! Thanks for sharing!