diffsptk
See this page for details.
Absolute maximum value of input.
Compression factor, \(\mu\).
Compress waveform by \(\mu\)-law algorithm.
Waveform.
Compressed waveform.
Examples
>>> x = diffsptk.ramp(4) >>> ulaw = diffsptk.MuLawCompression(4) >>> y = ulaw(x) >>> y tensor([0.0000, 3.0084, 3.5028, 3.7934, 4.0000])
See also
iulaw
previous
stft
next
window