android Programming Glossary: audiomanager.stream_voice_call
Android - Play audio from earpiece http://stackoverflow.com/questions/13960313/android-play-audio-from-earpiece m_amAudioManager.setSpeakerphoneOn false A call to setMode AudioManager.STREAM_VOICE_CALL on the MediaPlayer did not help either. mediaPlayer.reset mediaPlayer.setAudioStreamType.. either. mediaPlayer.reset mediaPlayer.setAudioStreamType AudioManager.STREAM_VOICE_CALL mediaPlayer.setDataSource path mediaPlayer.prepare Has something.. Play through the ear piece mediaPlayer.setAudioStreamType AudioManager.STREAM_VOICE_CALL Play through the speaker phone mediaPlayer.setAudioStreamType..
Using the Android RecognizerIntent with a bluetooth headset http://stackoverflow.com/questions/14991158/using-the-android-recognizerintent-with-a-bluetooth-headset TextToSpeech.Engine.KEY_PARAM_STREAM String.valueOf AudioManager.STREAM_VOICE_CALL mTts.speak text TextToSpeech.QUEUE_FLUSH myHashRender Copy the..
Android - can I mute currently playing audio applications? http://stackoverflow.com/questions/1993471/android-can-i-mute-currently-playing-audio-applications and use the method call AudioManager.setStreamSolo AudioManager.STREAM_VOICE_CALL true when playback begins then un solo the stream with false..
Android - Getting audio to play through earpiece http://stackoverflow.com/questions/2119060/android-getting-audio-to-play-through-earpiece Log.d ROUTING getRouting ok setVolumeControlStream AudioManager.STREAM_VOICE_CALL am.setSpeakerphoneOn true Log.d SPEAKERPHONE Is speakerphone..
Routing audio to Bluetooth Headset (non-A2DP) on Android http://stackoverflow.com/questions/2144694/routing-audio-to-bluetooth-headset-non-a2dp-on-android sdcard sample.mp3 .getFD mPlayer.setAudioStreamType AudioManager.STREAM_VOICE_CALL mPlayer.prepare mPlayer.start catch Exception e Log.e TAG..
Playing an pre-recorded audio file to somebody over a call http://stackoverflow.com/questions/5452595/playing-an-pre-recorded-audio-file-to-somebody-over-a-call to somebody over a call I understand that even though the AudioManager.STREAM_VOICE_CALL is available in the SDK for android it is not actually been..
TTS output always going to A2DP http://stackoverflow.com/questions/6963461/tts-output-always-going-to-a2dp TextToSpeech.Engine.KEY_PARAM_STREAM String.valueOf AudioManager.STREAM_VOICE_CALL My understanding is that audio routing to a Bluetooth headset.. TextToSpeech.Engine.KEY_PARAM_STREAM String.valueOf AudioManager.STREAM_VOICE_CALL am2.requestAudioFocus null AudioManager.STREAM_VOICE_CALL AudioManager.AUDIOFOCUS_GAIN_TRANSIENT.. AudioManager.STREAM_VOICE_CALL am2.requestAudioFocus null AudioManager.STREAM_VOICE_CALL AudioManager.AUDIOFOCUS_GAIN_TRANSIENT else am2.requestAudioFocus..
Android - Play audio from earpiece http://stackoverflow.com/questions/13960313/android-play-audio-from-earpiece m_amAudioManager.setMode AudioManager.MODE_IN_CALL m_amAudioManager.setSpeakerphoneOn false A call to setMode AudioManager.STREAM_VOICE_CALL on the MediaPlayer did not help either. mediaPlayer.reset mediaPlayer.setAudioStreamType AudioManager.STREAM_VOICE_CALL.. on the MediaPlayer did not help either. mediaPlayer.reset mediaPlayer.setAudioStreamType AudioManager.STREAM_VOICE_CALL mediaPlayer.setDataSource path mediaPlayer.prepare Has something changed since android 2.3 to break this code I tried the.. out the right way to do this is through the following code. Play through the ear piece mediaPlayer.setAudioStreamType AudioManager.STREAM_VOICE_CALL Play through the speaker phone mediaPlayer.setAudioStreamType AudioManager.STREAM_MUSIC That is it. Any other solution Including..
Using the Android RecognizerIntent with a bluetooth headset http://stackoverflow.com/questions/14991158/using-the-android-recognizerintent-with-a-bluetooth-headset 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 class to your project. import java.util.List..
Android - can I mute currently playing audio applications? http://stackoverflow.com/questions/1993471/android-can-i-mute-currently-playing-audio-applications case you could borrow the phone call stream for your MediaPlayer and use the method call AudioManager.setStreamSolo AudioManager.STREAM_VOICE_CALL true when playback begins then un solo the stream with false when playback or your Activity is done. I can tell you that..
Android - Getting audio to play through earpiece http://stackoverflow.com/questions/2119060/android-getting-audio-to-play-through-earpiece int ok am.getRouting AudioManager.ROUTE_EARPIECE Log.d ROUTING getRouting ok setVolumeControlStream AudioManager.STREAM_VOICE_CALL am.setSpeakerphoneOn true Log.d SPEAKERPHONE Is speakerphone on am.isSpeakerphoneOn am.setSpeakerphoneOn false Log.d SPEAKERPHONE..
Routing audio to Bluetooth Headset (non-A2DP) on Android http://stackoverflow.com/questions/2144694/routing-audio-to-bluetooth-headset-non-a2dp-on-android new MediaPlayer try mPlayer.setDataSource new FileInputStream sdcard sample.mp3 .getFD mPlayer.setAudioStreamType AudioManager.STREAM_VOICE_CALL mPlayer.prepare mPlayer.start catch Exception e Log.e TAG e.toString @Override public void onDestroy mPlayer.stop amanager.setMode..
Playing an pre-recorded audio file to somebody over a call http://stackoverflow.com/questions/5452595/playing-an-pre-recorded-audio-file-to-somebody-over-a-call an pre recorded audio file to somebody over a call I understand that even though the AudioManager.STREAM_VOICE_CALL is available in the SDK for android it is not actually been used to play a pre recorded audio file or atleast that is what..
TTS output always going to A2DP http://stackoverflow.com/questions/6963461/tts-output-always-going-to-a2dp 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 STREAM_MUSIC goes to A2DP aka media audio.. 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 else am2.requestAudioFocus.. TextToSpeech.Engine.KEY_PARAM_STREAM String.valueOf AudioManager.STREAM_VOICE_CALL am2.requestAudioFocus null AudioManager.STREAM_VOICE_CALL AudioManager.AUDIOFOCUS_GAIN_TRANSIENT else am2.requestAudioFocus null AudioManager.STREAM_MUSIC AudioManager.AUDIOFOCUS_GAIN_TRANSIENT..
|