``` class AudioProcessingModule: """ Prov...
# ask-ai
b
Copy code
class AudioProcessingModule:
    """
    Provides WebRTC audio processing capabilities including echo cancellation, noise suppression,
    high-pass filtering, and gain control.
    """

    def __init__(
        self,
        *,
        echo_cancellation: bool = False,
        noise_suppression: bool = False,
        high_pass_filter: bool = False,
        auto_gain_control: bool = False,
    ) -> None:
        """
        Initialize an AudioProcessingModule instance with the specified audio processing features.

        Args:
by default these values are false? so by default noise suppression is not enabled?
t
Thanks for reaching out, Mohammed. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Yes, by default all audio processing features—such as noise suppression, echo cancellation, high-pass filtering, and *auto gain control*—are set to
False
in the
AudioProcessingModule
. This means that noise suppression is not enabled unless you explicitly pass
noise_suppression=True
when initializing the module. This default behavior gives you full control and ensures no audio processing is applied unless you choose to enable it. This pattern is consistent across the LiveKit SDKs, including Python, Node.js, and Rust implementations. Platform-specific nuances do exist (such as simulator defaults in Swift), but the general rule is that features are disabled by default unless specified otherwise during initialization. For detailed examples and cross-platform consistency, see the cited implementation and test excerpts. Sources: livekit-rtc/livekit/rtc/_proto/audio_frame_pb2.pyi | Runtime/Scripts/Proto/AudioFrame.cs | packages/livekit-rtc/src/proto/audio_frame_pb.ts | livekit-ffi/src/livekit.proto.rs | Sources/LiveKit/Types/Options/AudioCaptureOptions.swift