Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
Torchaudio
Commits
90c0edc5
Unverified
Commit
90c0edc5
authored
Aug 06, 2021
by
S Harish
Committed by
GitHub
Aug 06, 2021
Browse files
Add example for MuLawDecoding (#1684)
parent
2aad9289
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
torchaudio/transforms.py
torchaudio/transforms.py
+5
-0
No files found.
torchaudio/transforms.py
View file @
90c0edc5
...
...
@@ -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'
]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment