1. Are you ready for the Galaxy S20? Here is everything we know so far!

Stereo recording bringing in same audio data for both left and right channels

Discussion in 'Android Help' started by Neetha, Dec 22, 2013.

  1. Neetha

    Neetha Guest
    Thread Starter

    I am trying to record and process audio data based on differences in what gets recorded in the left and right channel(i.e data from the 2 microphones on the phone). For this I am using Audio Record class, with MIC as input and STEREO mode.
    recorder = new AudioRecord(MediaRecorder.AudioSource.MIC, sampleRate,
    AudioFormat.ENCODING_PCM_16BIT, bufferSize);
    My issue is that I get exactly the same data in both the channels. (alternate samples are separated to get individual channel inputs). Please suggest what I need to do.

    My phone is a Nexus 4, which I have rooted. I have even editted /etc/media_profiles.xml so that Maxchannels = 2 for AudioEncoderCap. But I see no improvement. Is it because I am using raw audio data without any form of compression?

  2. quickaudi

    quickaudi Android Expert

    what app are you using to record?
  3. Neetha

    Neetha Lurker

    Hi, I am using Audio Record Class in the code off the App which I am developing, using Android SDK. I am setting the class parameter CHANNEL_IN_STEREO.

Share This Page