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

AudioSourceAndroid being ignored? #632

Open
tjlondon-npauctions opened this issue Sep 23, 2024 · 0 comments
Open

AudioSourceAndroid being ignored? #632

tjlondon-npauctions opened this issue Sep 23, 2024 · 0 comments

Comments

@tjlondon-npauctions
Copy link

Android version

14

Version of react-native-audio-recorder-player

3.6.11

Version of React Native

0.74

Platforms you faced the error (IOS or Android or both?)

Android

Expected behavior

When I switch AudioSourceAndroid between MIC, DEFAULT, VOICE_COMMUNICATION etc I'm expecting the audio source to change. Specifically, I'm trying to get it to use the mic on a connected bluetooth headset rather than the onboard mic.

Actual behavior

It always records from the onboard mic, despite trying each option.

Steps to reproduce the behavior

Pass in an AudioSet with one of AudioSourceAndroidType.

const audioSet = {
AudioSourceAndroid: AudioSourceAndroidType.VOICE_COMMUNICATION,
};
/** Open the mic and start the recorder */
const uri = await audioRecorderPlayerRef.current.startRecorder(
audioPath,
audioSet,
true,
);

Can anyone help? It's quite likely I'm just mis-understanding how this works. So apologies in advance.

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