My Android application relies on a closed-source Text-To-Speech API. When I invoke .speak(String s) method it coverts supplied text to sound and plays it back. However, I also want to be able to save that sound to an .mp3 file for later playback.
So, is it somehow possible to redirect an AudioStream to a file?