-
Notifications
You must be signed in to change notification settings - Fork 11
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: tts[in windows], text is chinese #17
Comments
Can you try edit the text in the file and pass it directly instead of passing it from the console? |
I tried hardcoding this string of Chinese text directly, same error as this one. |
My initial guess is that there's something wrong with rust's string to cstring conversion macro in debug mode |
What's the exact model you use? (and tokens file & lexicon) |
Here are my input parameters: |
It works for me without errors on WIndows 11. wget https://github.com/k2-fsa/sherpa-onnx/releases/download/tts-models/vits-zh-hf-theresa.tar.bz2
tar xvf vits-zh-hf-theresa.tar.bz2
rm vits-zh-hf-theresa.tar.bz2
cargo run --example tts -- --text "真诚就是不欺人也不自欺。热爱就是全心投入并享受其中。" --output audio.wav --tokens "vits-zh-hf-theresa/tokens.txt" --model "vits-zh-hf-theresa/theresa.onnx" --lexicon "vits-zh-hf-theresa/lexicon.txt" --dict-dir "vits-zh-hf-theresa/dict" |
Mine is win10. |
os: windows 10
when use examples\tts.rs.
use params: -- text "真诚就是不欺人也不自欺。热爱就是全心投入并享受其中。"
error:
The text was updated successfully, but these errors were encountered: