What is the int returned by the TextToSpeech.synthesizeToFile
?
Are you sure about the path given by Environment.getExternalStorageDirectory
? You can try to set the path manually by something like /storage/sdcard0/myTts.wav
and search for that file with a file manager app. I really had trouble finding my synthesized files on my phone as well, due to the wierd behaviour of android saving files to the external sd card.
Another problem i faced using Tts is the restriction to strings with maximum 4000 characters. But as long as your .speak
method is working this should not be the problem.