Android TextToSpeech addSpeech() is not working
问题 I have an HD Desire phone with android 2.3. The TTS is working fine and it speaks every text I give. But when I use this either of the lines below to set my own voice for some texts, it simply ignores it and synthesizes the text, just like the line is not written! tts.addSpeech("salam", "/sdcard/salam.wav"); tts.addSpeech("shalam", "com.company.appname", R.raw.shalam); ... tts.speak("salam", TextToSpeech.QUEUE_FLUSH, null); //<--This isn't playing my voice file. tts.speak("shalam",