how to livekit cancel the his own voice . livekit ...
# ask-ai
r
how to livekit cancel the his own voice . livekit dont intruct his voice
t
Thanks for reaching out, Av. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Hey there! To help make sure you don’t hear your own voice in LiveKit, you can rely on echo cancellation, which is already turned on by default in LiveKit’s WebRTC setup. Here’s a quick rundown on how to keep it working smoothly: • Enable Echo Cancellation: Just use the
AudioCaptureOptions
class in the LiveKit SDKs to make sure echo cancellation stays active. For example, in Swift:
Copy code
let audioOptions = AudioCaptureOptions(echoCancellation: true)
Platform-Specific Settings: On iOS, Apple’s voice-processing I/O (which includes echo cancellation) is on by default. You can check or adjust it with:
Copy code
AudioManager.shared.isVoiceProcessingBypassed = false
• For Android, echo cancellation is also turned on automatically during audio session setup. • LiveKit Cloud: If you’re using LiveKit Cloud, there’s an option to enable enhanced noise and echo cancellation for an even cleaner sound. These tips should help keep your own voice from echoing back to you. If you run into any issues or want to chat more about it, just let me know—I’m here to help! Sources: Tests/LiveKitTests/AudioProcessingTests.swift | docs/index.html | Noise & echo cancellation | LiveKit Docs | SIP troubleshooting guide | LiveKit Docs
r
it also work on console version ? how ?
t
Hey there! Just a quick heads-up: echo cancellation in LiveKit is something you set up through the client-side SDKs, not directly in the LiveKit Console. You can easily turn it on when you publish a microphone track by setting the
echoCancellation
option to
true
in the
AudioCaptureOptions
class. Here’s how you can do it: • Flutter SDK: Just use
AudioCaptureOptions(echoCancellation: true)
. • Python SDK: Set
echo_cancellation=True
when you create an
AudioProcessingModule
instance. If you want a hand with this in any specific SDK or have questions, feel free to ask—I’m here to help! Sources: lib/src/proto/livekit_models.pbenum.dart | livekit-agents/livekit/agents/voice/chat_cli.py | Noise & echo cancellation | LiveKit Docs