WaveNet quantizes each audio sample to 256 levels, and mu-law companding spaces those levels so that quiet sounds get finer resolution. The compressed signal is what gets quantized.
Implement mu_law_encode(x, mu), the logarithmic compression of the signal.
Compute the log of one plus mu times the magnitude, divide by the log of one plus mu, and restore the sign.
No results yet
Run your code to check it against the examples, or submit to run every test.