Are you sure you will try this:
HashMap<String, String> myHashAlarm = new HashMap<String, String>(); myHashAlarm.put(TextToSpeech.Engine.KEY_PARAM_STREAM, String.valueOf(AudioManager.STREAM_SYSTEM_CALL)); mTts.speak(" aabb1321100111000",TextToSpeech.QUEUE_ADD, myHashAlarm); AudioManager mAudioManager = (AudioManager) getContext().getSystemService(Context.AUDIO_SERVICE); mAudioManager.setStreamMute(AudioManager.STREAM_VOICE_CALL, true); mAudioManager.startBluetoothSco();
source share