1. Download our Official Android App: Forums for Android!

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
    Rank:
    None
    Posts:
    0
    Joined:

    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.CHANNEL_IN_STEREO,
    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?
     

    Advertisement

  2. quickaudi

    quickaudi Android Expert
    Rank:
    None
    Points:
    273
    Posts:
    3,106
    Joined:
    Jul 15, 2010

    Jul 15, 2010
    3,106
    416
    273
    TN
    what app are you using to record?
     
  3. Neetha

    Neetha Lurker
    Rank:
    None
    Points:
    5
    Posts:
    1
    Joined:
    Dec 22, 2013

    Dec 22, 2013
    1
    0
    5
    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

Loading...