while testing my agent on dev mode the audio conta...
# ask-ai
b
while testing my agent on dev mode the audio contains a lot of background noise, but when installed on livekit cloud the audio is much better, is there any known issue related to this ?
t
Thanks for reaching out, Carlos. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Thanks — I understand you're seeing heavy background noise in dev mode but much better audio on LiveKit Cloud and want to know if this is a known issue. This is expected: LiveKit Cloud applies enhanced server-side noise cancellation and AI-powered audio processing by default, while local dev mode does not automatically run those same audio enhancements. Dev mode uses your machine's raw capture and whatever local audio stack you have, so ambient noise, mic quality, and local network conditions can make dev audio sound worse. How to close the gap locally • Enable noise cancellation in your agent (for example using
noise_cancellation.BVC()
or
BVCTelephony()
). • Match the same STT/VAD and preprocessing settings you use in Cloud. • Test with a higher-quality microphone or different mic placement and ensure low local CPU/memory use during tests. • Run tests on a stable network (dev machines can introduce jitter that affects perceived quality). If you want, tell me: • which noise-cancellation plugin or library you’re currently using (if any), • your dev OS and microphone type, • whether you’re running the agent in a container or directly on the host. I can then give exact steps or example config to enable the same noise cancellation locally. Sources: Agent Builder | LiveKit docs | Turns overview | LiveKit docs | sip | livekit/livekit_composite | DeepWiki | Google AI and LiveKit | LiveKit Docs | Voice AI quickstart | LiveKit docs
b
the noise comes when the llm bot is answering, one thing to notice is that the recording audio on livekit cloud is ok
t
Thanks — you mentioned the noise happens specifically when the LLM bot is answering and recordings on LiveKit Cloud are fine. That helps. This is expected: when the bot speaks in dev mode the reply audio is using your local audio stack (playback + capture) and does not get LiveKit Cloud’s server‑side enhanced noise cancellation. LiveKit Cloud applies AI noise cancellation to streams by default, which is why the Cloud recordings sound clean while local dev playback can contain background noise. To help you fix it locally, please tell me: • which noise‑cancellation plugin (if any) you’ve enabled (e.g.,
noise_cancellation.BVC()
or
BVCTelephony()
), • the SDK/language and version you’re using, • whether the bot’s audio is generated TTS locally or streamed from the server, • your dev OS and microphone setup, and • whether the agent runs in a container or directly on the host. With those details I’ll provide exact config or example code to enable the same noise cancellation and match the Cloud audio quality.