dcase_util.containers.AudioContainer.normalize

AudioContainer.normalize(headroom=0.005)[source]

Normalize audio data.

Data is normalized between -(1.0 - headroom) and +(1.0 - headroom)

Parameters
headroomfloat

How much headroom there should be left under 1.0. Default value 0.005

Returns
self