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



    1. Download the Forums for Android™ app!


      Download

       
  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.
     
Loading...
Similar Threads - Stereo recording bringing
  1. Renks
    Replies:
    1
    Views:
    202
  2. OnGoGS7A
    Replies:
    5
    Views:
    578
  3. Vishnu Keloth
    Replies:
    1
    Views:
    570
  4. neil154
    Replies:
    0
    Views:
    338
  5. Eric Monz
    Replies:
    2
    Views:
    294
  6. Antonio Salazar
    Replies:
    0
    Views:
    277
  7. Moisdois10
    Replies:
    2
    Views:
    381
  8. dorlow
    Replies:
    4
    Views:
    715
  9. GregL65
    Replies:
    9
    Views:
    9,382
  10. Gert_AF
    Replies:
    2
    Views:
    3,916

Share This Page

Loading...