title: Is it possible to record the voice from Bluetooth headset and play on Android speaker simultaneously?
body: <p>Is it possible to record the voice from Bluetooth headset and play on Android speaker simultaneously? I finished to record audio from handset device by this code. And I am doing the second step- play this sound in android speaker. Please help me to resolve it. Thank you so much</p>
  
  <pre><code>_audioManager = (AudioManager) getSystemService(Context.AUDIO_SERVICE); 
   _audioManager.startBluetoothSco();
   _recorder = new MediaRecorder();
   _recorder.setAudioSource(MediaRecorder.AudioSource.DEFAULT);
   _recorder.setOutputFormat(MediaRecorder.OutputFormat.MPEG_4);
   _recorder.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB);
   _recorder.setOutputFile(file.toString());
   _recorder.prepare();
   _recorder.start();
  </code></pre>