Hi,
I need to get TTS running playing on the notifications audio stream instead of the music audio stream. I know Android can do that (http://android-developers.blogspot.com.au/2009/09/introduction-to-text-to-speech-in.html) but can it be done with B4A and reflection?
Thanks,
Richard
I need to get TTS running playing on the notifications audio stream instead of the music audio stream. I know Android can do that (http://android-developers.blogspot.com.au/2009/09/introduction-to-text-to-speech-in.html) but can it be done with B4A and reflection?
B4X:
HashMap<String,String> myHashAlarm =newHashMap();
myHashAlarm.put(TextToSpeech.Engine.KEY_PARAM_STREAM,
String.valueOf(AudioManager.STREAM_ALARM));
mTts.speak(myText1,TextToSpeech.QUEUE_FLUSH, myHashAlarm);
mTts.speak(myText2,TextToSpeech.QUEUE_ADD, myHashAlarm);
Thanks,
Richard