TTS Android removing addSpeech item?
<p>I have used </p>

<pre><code>mTts.addSpeech(text, filename.getAbsolutePath() );
</code></pre>

<p>to map an audio file to a particular string of text.</p>

<p>The problem is that if the used deletes the file, which is possible/likely in my case, I need to remove the addSpeech  mapping from mTts (using removeSpeech() which does not exist) so that it reverts to computerised voice.</p>

<p>is this possible?</p>

<p>This is the stack trace I am getting after I add a file using addSpeech, then remove the file and attempt to speak again.</p>

<pre><code>12-17 15:41:45.016: ERROR/MediaPlayer(361): error (1, -2147483648)
12-17 15:41:45.056: DEBUG/MediaPlayer(361): create failed:
12-17 15:41:45.056: DEBUG/MediaPlayer(361): java.io.IOException: Prepare failed.: status=0x1
12-17 15:41:45.056: DEBUG/MediaPlayer(361):     at android.media.MediaPlayer.prepare(Native Method)
12-17 15:41:45.056: DEBUG/MediaPlayer(361):     at android.media.MediaPlayer.create(MediaPlayer.java:611)
12-17 15:41:45.056: DEBUG/MediaPlayer(361):     at android.media.MediaPlayer.create(MediaPlayer.java:588)
12-17 15:41:45.056: DEBUG/MediaPlayer(361):     at android.tts.TtsService.processSpeechQueue(TtsService.java:1098)
12-17 15:41:45.056: DEBUG/MediaPlayer(361):     at android.tts.TtsService.speak(TtsService.java:507)
12-17 15:41:45.056: DEBUG/MediaPlayer(361):     at android.tts.TtsService.access$1900(TtsService.java:58)
12-17 15:41:45.056: DEBUG/MediaPlayer(361):     at android.tts.TtsService$1.speak(TtsService.java:1256)
12-17 15:41:45.056: DEBUG/MediaPlayer(361):     at android.speech.tts.ITts$Stub.onTransact(ITts.java:86)
12-17 15:41:45.056: DEBUG/MediaPlayer(361):     at android.os.Binder.execTransact(Binder.java:288)
12-17 15:41:45.056: DEBUG/MediaPlayer(361):     at dalvik.system.NativeStart.run(Native Method)
</code></pre>
