Search code examples
javaandroidcpu-wordtext-to-speech

Android TextToSpeech just spells short words instead of pronounces them


I'm using TextToSpeech to read words. This code works fine for most cases:

public void speak(String pContent) {
    if (!isAvailable() || !isReady()) return;
    this.mEngine.speak(pContent, TextToSpeech.QUEUE_ADD, null);
}

However, with words that have 3 or less characters such as dog, cow it just spells each character (d - o - g). Words like cow milk, it spells cow, then reads milk correctly.

Did I do something wrong?

More information: I tried PicoTTS of Android, and on Galaxy Tab, I tried Samsung TTS too, both of them have this issue.


Solution

  • AFAIK the only way to get TTS to spell words is using all capitals. I can't see your pContent, but maybe you're feeding it COW milk?