Search Unity

  1. Unity 2020.1 has been released.
    Dismiss Notice
  2. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice

Disable Automatic Gain Control (Core audio)

Discussion in 'iOS and tvOS' started by RonanSB, May 27, 2016.

  1. RonanSB

    RonanSB

    Joined:
    Oct 29, 2015
    Posts:
    3
    Hi everyone,

    I'm working on an app that needs to record audio in busy environments. On iOS I'm running into an issue that I think is caused by the automatic gain control functionality in the CoreAudio framework. The device's microphone sensitivity seems to be automatically adjusted in louder environments, sometimes to the point where it doesn't pick up speech directed at the device. As my implementation relies on amplitude thresholds to determine if an audio clip should be saved, this gain adjustment causes the app on iOS to discard audio that should be accepted (and is on Android and standalone builds in the same scenario).

    Does anyone know if it's possible to disable the AGC functionality from within Unity? The only relevant post I can find is this one on stackoverflow: http://stackoverflow.com/questions/15644871/programmatically-turn-off-voiceprocessingio-agc

    Cheers!
    Ronan
     
unityunity