Shortcuts

torchaudio.functional.mu_law_decoding

torchaudio.functional.mu_law_decoding(x_mu: Tensor, quantization_channels: int) Tensor[source]

Decode mu-law encoded signal.

This feature supports the following devices: CPU, CUDA This API supports the following properties: TorchScript

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

Docs

Access comprehensive developer documentation for PyTorch

View Docs

Tutorials

Get in-depth tutorials for beginners and advanced developers

View Tutorials

Resources

Find development resources and get your questions answered

View Resources