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.
set_prov_tracer
(prov_tracer)Enable provenance tracing.
Attributes:
Contains all the operation init parameters.
- property description: medkit.core.operation_desc.OperationDescription#
Contains all the operation init parameters.
- Return type
- set_prov_tracer(prov_tracer)#
Enable provenance tracing.
- Parameters
prov_tracer (
ProvTracer
) – The provenance tracer used to trace the provenance.