Magnitude scaling#

magphase

Separate a complex-valued spectrogram D into its magnitude (S) and phase (P) components, so that D = S * P.

amplitude_to_db

Convert an amplitude spectrogram to dB-scaled spectrogram.

db_to_amplitude

Convert a dB-scaled spectrogram to an amplitude spectrogram.

power_to_db

Convert a power spectrogram (amplitude squared) to decibel (dB) units

db_to_power

Convert dB-scale values to a power values.

perceptual_weighting

Perceptual weighting of a power spectrogram.

frequency_weighting

Compute the weighting of a set of frequencies.

multi_frequency_weighting

Compute multiple weightings of a set of frequencies.

A_weighting

Compute the A-weighting of a set of frequencies.

B_weighting

Compute the B-weighting of a set of frequencies.

C_weighting

Compute the C-weighting of a set of frequencies.

D_weighting

Compute the D-weighting of a set of frequencies.

pcen

Per-channel energy normalization (PCEN)

mu_compress

Compression by μ-law

mu_expand

Expansion by μ-law