¡@

Home 

2014/10/16 ¤W¤È 08:26:03

android Programming Glossary: texttospeech.engine.key_param_stream

Using the Android RecognizerIntent with a bluetooth headset

http://stackoverflow.com/questions/14991158/using-the-android-recognizerintent-with-a-bluetooth-headset

text HashMap String String myHashRender new HashMap String String if mBluetoothHelper.isOnHeadsetSco myHashRender.put TextToSpeech.Engine.KEY_PARAM_STREAM String.valueOf AudioManager.STREAM_VOICE_CALL mTts.speak text TextToSpeech.QUEUE_FLUSH myHashRender Copy the BluetoothHeadsetUtils..

How to know when TTS is finished?

http://stackoverflow.com/questions/4658376/how-to-know-when-tts-is-finished

void speak String text if text null HashMap String String myHashAlarm new HashMap String String myHashAlarm.put TextToSpeech.Engine.KEY_PARAM_STREAM String.valueOf AudioManager.STREAM_ALARM myHashAlarm.put TextToSpeech.Engine.KEY_PARAM_UTTERANCE_ID SOME MESSAGE mTts.speak..

TTS output always going to A2DP

http://stackoverflow.com/questions/6963461/tts-output-always-going-to-a2dp

My Android tutorial states that I can explicitly tell the TTS engine which stream to use For music playback params.put TextToSpeech.Engine.KEY_PARAM_STREAM String.valueOf AudioManager.STREAM_MUSIC And for phone calls params.put TextToSpeech.Engine.KEY_PARAM_STREAM String.valueOf.. TextToSpeech.Engine.KEY_PARAM_STREAM String.valueOf AudioManager.STREAM_MUSIC And for phone calls params.put TextToSpeech.Engine.KEY_PARAM_STREAM String.valueOf AudioManager.STREAM_VOICE_CALL My understanding is that audio routing to a Bluetooth headset works such that.. am2.startBluetoothSco if am2.isSpeakerphoneOn speakerPhoneWasOn false am2.setSpeakerphoneOn true myHash.put TextToSpeech.Engine.KEY_PARAM_STREAM String.valueOf AudioManager.STREAM_VOICE_CALL am2.requestAudioFocus null AudioManager.STREAM_VOICE_CALL AudioManager.AUDIOFOCUS_GAIN_TRANSIENT..