NoisereduceFilter

class pipecat.audio.filters.noisereduce_filter.NoisereduceFilter[source]

Bases: BaseAudioFilter

async start(sample_rate)[source]

This will be called from the input transport when the transport is started. It can be used to initialize the filter. The input transport sample rate is provided so the filter can adjust to that sample rate.

Parameters:

sample_rate (int)

async stop()[source]

This will be called from the input transport when the transport is stopping.

async process_frame(frame)[source]

This will be called when the input transport receives a FilterControlFrame.

Parameters:

frame (FilterControlFrame)

async filter(audio)[source]
Parameters:

audio (bytes)

Return type:

bytes