flat-diamond-66151
08/11/2025, 9:59 AMtall-airline-16756
08/11/2025, 9:59 AMtall-airline-16756
08/11/2025, 10:00 AMuseEffect(() => {
let connect = async () => {
await AudioSession.configureAudio({
android: {
audioTypeOptions: AndroidAudioTypePresets.media,
},
});
await AudioSession.startAudioSession();
};
connect();
}, []);
3. Adjust Platform-Specific Settings:
◦ Android: You can fine-tune audio settings like this:
await AudioSession.configureAudio({
android: {
manageAudioFocus: true,
audioMode: 'normal',
audioFocusMode: 'gain',
audioStreamType: 'music',
audioAttributesUsageType: 'media',
audioAttributesContentType: 'unknown',
},
});
◦ iOS: Try setting the audio category to playAndRecord
for better handling:
await AudioSession.setAppleAudioConfiguration({
audioCategory: 'playAndRecord',
});
1. Use Enhanced Noise Cancellation: If you can, turn on LiveKit Cloud’s enhanced noise cancellation—it can really boost your audio quality.
2. Test and Optimize: Give it a go by recording and playing back audio to see how well the echo is reduced.
Feel free to adjust these settings based on what fits your app best, and test them out in real-world situations to get the best experience. You’ve got this!
Sources: Noise & echo cancellation | LiveKit Docs | docs/index.html