livekit_ffi::server:… ...
# ask-ai
a
livekit_ffi:server… - audio filter cannot be enabled: LiveKit Cloud is required
t
Thanks for reaching out, Aditya. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Thanks — I’m responding to the error "audio filter cannot be enabled: LiveKit Cloud is required." That message means the enhanced audio filters (enhanced noise cancellation / background voice cancellation) are only available on LiveKit Cloud and are not supported on a self‑hosted LiveKit server. To help you next, please tell me: • Are you using LiveKit Cloud or a self‑hosted LiveKit server? • Where are you trying to enable the filter: frontend (client) or inbound/agent code (server-side)? • Which SDK and platform are you using (Web, iOS/Swift, Android, Node.js, Python, Unity, etc.)? If you’re self‑hosting and need alternatives now, you can: • Use browser/client-level
noiseSuppression
and
echoCancellation
via
AudioCaptureOptions
, or • Implement custom processing with raw audio APIs (
AudioStream
/
AudioSource
) in the LiveKit SDKs. Tell me the answers above and I’ll give exact steps for your setup. Sources: Enhanced noise cancellation | LiveKit docs | Bringing Zoom's end-to-end optimizations to WebRTC | Noise & echo cancellation | LiveKit docs | Processing raw media tracks | LiveKit docs
a
how can I disable it in the python code?
t
You're asking how to disable the audio filter in your Python code — specifically to avoid the "LiveKit Cloud is required" error. To disable enhanced noise cancellation, make sure
noise_cancellation
is not set (or is set to
None
) in
AudioInputOptions
when starting the agent session. Example:
Copy code
from livekit.agents.voice import room_io

await session.start(
    agent=MyAgent(),
    room=ctx.room,
    room_options=room_io.RoomOptions(
        audio_input=room_io.AudioInputOptions(
            noise_cancellation=None,  # disables enhanced noise cancellation
        ),
    ),
)
Or simply omit
AudioInputOptions
(or pass
audio_input=True
) — the noise cancellation will be disabled by default:
Copy code
await session.start(
    agent=MyAgent(),
    room=ctx.room,
    room_options=room_io.RoomOptions(
        audio_input=True,
    ),
)
If you’d like, tell me which code snippet you’re using now and I’ll show the exact place to change. Sources: Enhanced noise cancellation | LiveKit docs