torchaudio.functional.mu_law_decoding¶
- torchaudio.functional.mu_law_decoding(x_mu: Tensor, quantization_channels: int) Tensor [source]¶
Decode mu-law encoded signal.
For more info see the Wikipedia Entry
This expects an input with values between 0 and quantization_channels - 1 and returns a signal scaled between -1 and 1.
- Parameters:
x_mu (Tensor) – Input tensor
quantization_channels (int) – Number of channels
- Returns:
Input after mu-law decoding
- Return type:
Tensor