zaf / asterisk-speech-recog

Speech recognition script for Asterisk that uses google's speech engine.
GNU General Public License v2.0
245 stars 131 forks source link

Fixed Unicode issue by encoding $transcript to UTF-8 #15

Closed zopieux closed 9 years ago

zopieux commented 9 years ago

This is one-line fix that encodes $transcript to UTF-8 so that non-ASCII characters are not interperted as garbage. Tested with Asterisk 1.8.22.0. With this fix, I can successfully give ${utterance} to googletts.agi without any encoding issues.

zaf commented 9 years ago

Hello,

thank you very much for the patch. Indeed there is a need for a fix in unicode handling. I'm not merging this yet, I would like to perform some tests first and make sure nothing breaks.