rhasspy / piper

A fast, local neural text to speech system
https://rhasspy.github.io/piper-samples/
MIT License
4.38k stars 297 forks source link

Solution to Accents and "Ñ" for Spanish models: #479

Open ManoleteGuitar opened 3 weeks ago

ManoleteGuitar commented 3 weeks ago

Run from CMD:

piper.exe -m es_ES-davefx-medium.onnx --output_file out.wav --json-input < input.json

*Input.json file structure: { "text": "Tomorrow will be a good day." }

*Parsing with echo: echo "Mañana será un buen día" | piper.exe --model .\models\es_ES-davefx-medium.onnx --output_file out.wav

-- Note: Powershell with CAT creates problems with the UTF encoding of special characters such as accents and the "Ñ" letter .

Saludos.

slasuc commented 1 week ago

I have similar problem with polish "ą" letter

synesthesiam commented 1 week ago

Try running chcp 65001 first.

slasuc commented 1 week ago

Try running chcp 65001 first.

well it did not helped, however using cmder.app solved problem with diacritic symbols as mentioned in #460