medkit.audio.preprocessing.power_normalizer
medkit.audio.preprocessing.power_normalizer#
Classes:
|
Normalization operation setting the RMS power of each audio signal to a target value. |
- class PowerNormalizer(output_label, target_value=1.0, channel_wise=False, uid=None)[source]#
Normalization operation setting the RMS power of each audio signal to a target value.
- Parameters
output_label (
str) – Label of output normalized segments.target_value (
float) – Value to set the RMS power of each segment to.channel_wise (
bool) – If True, the normalization is performed per-channel, thus modifying the balance of multichannel signals.uid (str) – Identifier of the normalizer.
Methods:
run(segments)Return a normalized segment for each segment in segments.