Android - record sound played from the device to the headphone jack

I’m looking for a way to combine the sound recorded from the device’s microphone with the sound that the device plays.

Now you can say that this is a simple task, the microphone can record both, but this is not so, because the sound played by the device is played on the headphone jack instead of speakers.

Is there any way to do this?

+7
android record audio
source share
1 answer

I do not understand what you want. if you are talking about a recording input source, various Android OS for Android, DOWNLINK / Headphone speaker CAMCORDER, etc. are available for you.

Source Sode Android Developer Website

private void startRecording() { mRecorder = new MediaRecorder(); mRecorder.setAudioSource(MediaRecorder.AudioSource.VOICE_DOWNLINK); mRecorder.setOutputFormat(MediaRecorder.OutputFormat.THREE_GPP); mRecorder.setOutputFile(mFileName); mRecorder.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB); try { mRecorder.prepare(); } catch (IOException e) { Log.e(LOG_TAG, "prepare() failed"); } mRecorder.start(); } 
+3
source share

All Articles