Generating audio requires turning the predicted companded value back into a sample, which is the inverse of mu-law companding. Expansion is exponential, so small compressed values map to small amplitudes.
Implement mu_law_decode(y, mu), the inverse of the companding function.
Raise one plus mu to the magnitude, subtract one, divide by mu, and restore the sign.
No results yet
Run your code to check it against the examples, or submit to run every test.