narrow-chef-71655
10/08/2025, 2:18 PMtall-airline-16756
10/08/2025, 2:18 PMtall-airline-16756
10/08/2025, 2:19 PMAudioCaptureOptions during connection setup. These options include echoCancellation and noiseSuppression, and the great news is they don’t need cloud authentication.
If having advanced noise cancellation is really important for your use case, you might consider looking into third-party libraries or custom server-side processing. While LiveKit doesn’t provide these directly, I’m here to help you explore the best options for your needs!
Sources: Enhanced noise cancellation | LiveKit Docs | Noise & echo cancellation | LiveKit Docsnarrow-chef-71655
10/08/2025, 2:20 PMAudioCaptureOptions in BE or FE and How?tall-airline-16756
10/08/2025, 2:21 PMAudioCaptureOptions, you’ll want to set them up on the frontend when creating local audio tracks or connecting to a room. Here’s a friendly guide on how you can do it:
JavaScript/TypeScript SDK:
import { createLocalAudioTrack } from 'livekit-client';
const audioTrack = await createLocalAudioTrack({
echoCancellation: true,
noiseSuppression: true,
autoGainControl: true,
});
Or, if you prefer, when connecting to a room:
await room.connect(url, token, {
audioCaptureDefaults: {
echoCancellation: true,
noiseSuppression: true,
},
});
Swift SDK:
let audioOptions = AudioCaptureOptions(
echoCancellation: true,
noiseSuppression: true,
autoGainControl: true
)
Flutter SDK:
final audioOptions = AudioCaptureOptions(
echoCancellation: true,
noiseSuppression: true,
autoGainControl: true,
);
Unity Web SDK:
var audioOptions = new AudioCaptureOptions {
AutoGainControl = true
};
Just a quick note: these options are applied on the client side and aren’t processed on the backend. If you have any questions or want to explore this further, feel free to reach out—I’m here to help!
Sources: lib/src/track/options.dart | Runtime/Scripts/Room/Track/Options.cs | Noise & echo cancellation | LiveKit Docs | Operational Guidance & Best Practices | livekit/livekit_composite | DeepWik... | src/room/track/options.ts