Hi, We use the livekit react native SDK in our ap...
# sdk-native
i
Hi, We use the livekit react native SDK in our app. We've been experiencing issues with audio on android phones (specifically Samsung ones). These issues have been of two types: • The assistant interrupts itself, and its sound keeps getting fed back into the device. (prevalent on Galaxy S23 / S25 Ultra devices etc, and other Galaxy devices) • The voice input is not registered properly, and the one has to speak very loudly for the voice to get through. (we were able to recreate this on Galaxy S21 5G) We have Krisp disabled on the device, and use BVC. In our react native mobile app, our versions are:
Copy code
"@livekit/react-native": "^2.9.1",
"@livekit/react-native-webrtc": "^125.0.12",
Our current audio options in Javascript are configured as:
*AudioSession*.*configureAudio*({ android: { audioTypeOptions: AndroidAudioTypePresets.media } });
We're trying other audio options now, if someone has recommended audio config specifically for android, let us know and we'll try that. If not, any other leads on this issue will be helpful!
šŸ‘€ 1
If any native android developers are also using specific audio options when initiating a livekit room that works well across devices, it would be helpful to know. 🐱
I've tried the following option too:
*AudioSession*.*configureAudio*({ android: { audioTypeOptions: AndroidAudioTypePresets.communication } });
This has resulted in: the output voice not being played on the loud speaker of the phone but on the ear speaker (similar to how it is with a voice call) + the input also being registered when speaking very close to the phone
The one we would ideally want to set would be the MODE_ASSISTANT_CONVERSATION from the android documentation: https://developer.android.com/reference/android/media/AudioManager#setMode(int) As per the livekit docs, the "`audioMode`" options in
audioTypeOptions
within
*AudioSession*.*configureAudio*
mentions that it corresponds with the setMode in the android documentation I've sent above. However, the
audioMode
types allow following options:
audioMode?: 'normal' | 'callScreening' | 'inCall' | 'inCommunication' | 'ringtone';
- and having no luck with
inCommunication