When i use via react native, when the agent speech...
# ask-ai
s
When i use via react native, when the agent speech it listens to himself, how can i prevent that
t
Thanks for reaching out, Mostafa. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
To help you avoid any audio feedback or echo while using LiveKit with React Native, here are a few friendly tips: • Stick with the default bidirectional communication audio session mode, as it comes with echo cancellation turned on automatically. • Try not to disable the
echoCancellation
option in
AudioCaptureOptions
, even if you’re already using server-side noise cancellation like Background Voice Cancellation (BVC). • If you like, you can also enable BVC on the server or agent side for even better noise filtering. The great news is that the React Native SDK takes care of echo cancellation for you through the
AudioSession
class, which sets up the native audio settings perfectly for real-time communication. If you have any questions or need a hand with this, just let me know—I’m here to help! Sources: Noise & echo cancellation | LiveKit Docs | SIP troubleshooting guide | LiveKit Docs | README.md | Operational Guidance & Best Practices | livekit/livekit_composite | DeepWik...