Unverified Commit 90c0edc5 authored by S Harish's avatar S Harish Committed by GitHub
Browse files

Add example for MuLawDecoding (#1684)

parent 2aad9289
......@@ -699,6 +699,11 @@ class MuLawDecoding(torch.nn.Module):
Args:
quantization_channels (int, optional): Number of channels. (Default: ``256``)
Example
>>> waveform, sample_rate = torchaudio.load('test.wav', normalize=True)
>>> transform = torchaudio.transforms.MuLawDecoding(quantization_channels=512)
>>> mulawtrans = transform(waveform)
"""
__constants__ = ['quantization_channels']
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment