recording stereo with AudioRecord in android

前端 未结 1 1699

I\'m looking for a definitive answer on getting audioRecord to use both the top mounted and bottom mounted microphones so I don\'t have 2 identical (mono) channels. I\'d lik

1条回答
  •  天命终不由人
    2021-01-06 05:07

    Your question is closely related to my question and it seems the answer is device-dependent:

    1) For some devices (e.g. Samsung S2 Plus GT-I9105P, HTC One M7, HTC One M8, G3 LG-D855, Nexus 5, ...) there is simply no way to activate real stereo recordings via the built-in microphone capsules. Although in some cases the camcorder app of the manufacturer produces real stereo you won't find any other app which is able to do that.

    2) For some other devices, only few specific combinations of MediaRecorder.AudioSource and e.g. sample rate (or other basic settings) enable real stereo recording (e.g. Motorola Moto G needs MediaRecorder.AudioSource.CAMCORDER and 48kHz sample rate).

    3) On most devices with two microphone capsules AudioFormat.CHANNEL_IN_STEREO is sufficient to activate real stereo recording.

    Unfortunately, Alsa or tinyAlsa will most probably not solve the problem without rooting the device.

    0 讨论(0)
提交回复
热议问题