I have looked almost everywhere trying to find a way to save my android tts output in an audio file. I looked at these posts:
- How can I save TTS output in an audio file on android?
- How can I allow the TTS to write files to my app's directories?
but couldn't find/understand the answers. I am using synthesizeToFile()
like this:
HashMap<String, String> myHashRender = new HashMap<String, String>();
myHashRender.put(TextToSpeech.Engine.KEY_PARAM_UTTERANCE_ID, result);
String fileName = "/Android/data/com.android.voicelanglearning.vll/ttsfile1.wav";
tts.synthesizeToFile(result, myHashRender, fileName);
So I am reposting the same question. Any help is much appreciated.
Thank you, Mounika