Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to disable AGC (Automatic Gain Control) on iPhone? #22

Open
tmatsuo opened this issue May 11, 2023 · 0 comments
Open

How to disable AGC (Automatic Gain Control) on iPhone? #22

tmatsuo opened this issue May 11, 2023 · 0 comments

Comments

@tmatsuo
Copy link

tmatsuo commented May 11, 2023

We're using react-native-live-audio-stream for recording breathing sound while wearing bluetooth headphones.
The recording itself seems to work, but the audio doesn't include most of the breathing sound, likely because of the AGC automatically applied by iOS. We'd like to disable AGC.

I'm trying to disable AGC with this patch:
https://gist.github.com/tmatsuo/57e5d2835ea6cc892c7ad0e071b341b6

However, it doesn't seem to work. The audio is still mostly silent.

Do you have any insights on how to achieve this?
Ideally it's great if we can modify this library and expose it as an option, but just hearing your thoughts would be helpful as well.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant