| 10 | == How to fix pronunciation errors == |
| 11 | |
| 12 | Error in pronunciation (in the text-to-phoneme part) can be fixed by calling [[http://doc.aldebaran.com/2-5/naoqi/audio/altexttospeech-api.html#ALTextToSpeechProxy::addToDictionary__ssCR.ssCR|ALTextToSpeech.addToDictionary]]. This function stores the dictionary in `/home/nao/.config/tts/nuance/cs_CZ/rulesets.rst`: |
| 13 | {{{ |
| 14 | [header] |
| 15 | language = czc |
| 16 | charset = utf-8 |
| 17 | [data] |
| 18 | /Ou/ --> "\e\\toi=lhp\\o&u\e\\toi=orth\\" |
| 19 | /www/ --> "\e\\toi=lhp\\vE:vE:vE:\e\\toi=orth\\" |
| 20 | }}} |
| 21 | You can also directly edit this file and then recompile the dictionary e.g. by calling |
| 22 | {{{ |
| 23 | qicli call ALTextToSpeech.deleteFromDictionary unexisting |
| 24 | }}} |
| 25 | |
| 26 | |
| 27 | |