victorious-midnight-79553
11/04/2025, 2:39 PMtall-airline-16756
11/04/2025, 2:39 PMtall-airline-16756
11/04/2025, 2:40 PMimport 'package:livekit_client/livekit_client.dart';
import 'package:livekit_noise_filter/livekit_noise_filter.dart';
final liveKitNoiseFilter = LiveKitNoiseFilter();
final room = Room(
roomOptions: RoomOptions(
defaultAudioCaptureOptions: AudioCaptureOptions(
processor: liveKitNoiseFilter,
),
),
);
await room.connect(url, token);
await room.localParticipant?.setMicrophoneEnabled(true);
// Toggle at runtime:
// liveKitNoiseFilter.setBypass(true); // disable NC
// liveKitNoiseFilter.setBypass(false); // enable NC
Would you like a Python or Node agent example to enable BVC so your realtime model gets cleaner input?
Sources: Enhanced noise cancellation | LiveKit docs | OpenAI and LiveKit | LiveKit Docsvictorious-midnight-79553
11/04/2025, 2:52 PMtall-airline-16756
11/04/2025, 2:53 PMvictorious-midnight-79553
11/04/2025, 2:53 PMtall-airline-16756
11/04/2025, 2:53 PMlivekit_noise_filter in your app.
• If the package is present, ensure you’re not setting AudioCaptureOptions(processor: ...) anywhere.
• At runtime, confirm no calls to setBypass(false) on a LiveKitNoiseFilter instance (ideally, no instance at all).
• If you previously enabled NC, explicitly disable/remove it and restart the app to clear state.
Room/media settings
• Use default capture without extra audio processing flags on the client.
• Check that only the agent applies processing; no SFU/SIP-side NC is enabled for this path.
Optional validation
• Record a short baseline from the client mic and the agent’s post-BVC output; compare that the client track is raw and the agent track is cleaned.
• Temporarily log RMS/voice activity before and after BVC to confirm suppression activates only in the agent.
Want a quick code snippet to assert BVC is active in your agent logs?victorious-midnight-79553
11/04/2025, 4:31 PM