medkit.audio.preprocessing.downmixer#

Classes:

Downmixer(output_label[, prevent_clipping, uid])

Downmixing operation converting multichannel audio signals to mono.

class Downmixer(output_label, prevent_clipping=True, uid=None)[source]#

Downmixing operation converting multichannel audio signals to mono.

Parameters
  • output_label (str) – Label of output downmixed segments.

  • prevent_clipping (bool) – If True, normalize downmixed signals by number of channels to prevent clipping.

  • uid (str) – Identifier of the downmixer.

Methods:

run(segments)

Return a downmixed segment for each segment in segments.

run(segments)[source]#

Return a downmixed segment for each segment in segments.

Parameters

segments (List[Segment]) – Audio segments to downmix.

Return type

List[Segment]

Returns

List[~medkit.core.audio.Segment] – Downmixed segments, one per segment in segments.