-
Notifications
You must be signed in to change notification settings - Fork 732
Example for Mu law encoding #1586
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
PR for Issue #1564 |
|
@mthrok please help to review |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
@nateanl please help to review |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thanks for the change @harishsdev. We can merge it after fixing all nits!
torchaudio/transforms.py
Outdated
| Example | ||
| >>> waveform, sample_rate = torchaudio.load('test.wav', normalization=True) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: normalization is changed to normalize now. Let's replace it.
| >>> waveform, sample_rate = torchaudio.load('test.wav', normalization=True) | |
| >>> waveform, sample_rate = torchaudio.load('test.wav', normalize=True) |
torchaudio/transforms.py
Outdated
| Example | ||
| >>> waveform, sample_rate = torchaudio.load('test.wav', normalization=True) | ||
| >>> transform = torchaudio.transforms.MuLawEncoding(quantization_channels = 512) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: remove spaces.
| >>> transform = torchaudio.transforms.MuLawEncoding(quantization_channels = 512) | |
| >>> transform = torchaudio.transforms.MuLawEncoding(quantization_channels=512) |
torchaudio/transforms.py
Outdated
| quantization_channels (int, optional): Number of channels. (Default: ``256``) | ||
| Example | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can delete the line break to be consistent with other examples.
|
Thanks! I have merged it to main branch. |
|
@nateanl thanks for merging it |
Example for Mu law encoding