StevenHickson / PiAUISuite

Raspberry PI AUI Suite
Other
695 stars 210 forks source link

tts doesn't works with accents #17

Closed maditnerd closed 10 years ago

maditnerd commented 10 years ago

How to reproduce the issue:

./tts -l fr "connecté" Instead of "connecté" you hear connectCOPYRIGHT

How to correct the issue

In Line 39/35 https://github.com/StevenHickson/PiAUISuite/blob/master/VoiceCommand/tts#L39

Add ie=UTF-8 wget -q -U Mozilla -O "/dev/shm/tmp.mp3" "http://translate.google.com/translate_tts?ie=UTF-8tl=${lang}&q=$tmp"

StevenHickson commented 10 years ago

Thanks for the fix. Hadn't spotted this