I have been trying to implement text-to-speech into my app to support Cantonese. In some cases the engine seems to read sentences with percentage incorrectly, which below is a case I encountered:
Input: 有10.6% (In English it means, there is 10.6%) What the engine outputs: 有一百分之零點六 (In English it is something like, there is 0.6 over 100, i.e. 0.6%) Here is how I initiated my text-to-speech object: TextToSpeech tts = new TextToSpeech(getApplicationContext(), new TextToSpeech.OnInitListener() { @Override public void onInit(int status) { if (status == TextToSpeech.SUCCESS) { } } }); Locale loc = new Locale("yue"); tts.setLanguage(loc); tts.speak(speech, TextToSpeech.QUEUE_FLUSH, null); //speech in this case is" 有10.6%" I tested with other language and it seems that there is no such problem, so I suspect that this might be a bug specifically for Cantonese? Or did I do something wrong? Thanks! -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. To post to this group, send email to android-developers@googlegroups.com. Visit this group at https://groups.google.com/group/android-developers. To view this discussion on the web visit https://groups.google.com/d/msgid/android-developers/732aa740-127d-498b-aa53-824c95465c8f%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.