-
Notifications
You must be signed in to change notification settings - Fork 657
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
[Cherry-picked 0.12] Update audio I/O tutorials #2385
Conversation
306c62c
to
2d2bf4c
Compare
@mthrok has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
2d2bf4c
to
b4329f4
Compare
@mthrok has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
b4329f4
to
4e1af5e
Compare
# >>> Source: https://pytorch-tutorial-assets.s3.amazonaws.com/steam-train-whistle-daniel_simon.mp3 | ||
# >>> Fetched 8192 bytes. | ||
# >>> AudioMetaData(sample_rate=44100, num_frames=0, num_channels=2, bits_per_sample=0, encoding=MP3) | ||
# When passing a file-like object, ``info`` does not read |
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.
# When passing a file-like object, ``info`` does not read | |
# When passing a file-like object, ``info`` cannot access |
4e1af5e
to
dc1fba0
Compare
- Adopt `torchaudio.utils.download_asset` to simplify asset management. - Break down the first section about helper functions. - Use tempfile so that executing tutorial won't leave any artifacts on local file system.
dc1fba0
to
cfa98fb
Compare
Co-authored-by: nateanl <zni@fb.com> Co-authored-by: hwangjeff <hwangjeff@users.noreply.github.com>
@mthrok has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
Hey @mthrok. |
Summary: - Adopt `torchaudio.utils.download_asset` to simplify asset management. - Break down the first section about helper functions. - Use tempfile so that executing tutorial won't leave any artifacts on local file system. Example: https://output.circle-artifacts.com/output/job/b11a0087-8bf9-4999-a74f-b53798eaa77f/artifacts/0/docs/tutorials/audio_io_tutorial.html Pull Request resolved: #2385 Reviewed By: hwangjeff Differential Revision: D36404399 Pulled By: mthrok fbshipit-source-id: 106af34e8ddd22a061aa12767b444b32aef07bad
torchaudio.utils.download_asset
to simplify asset management.Example: https://output.circle-artifacts.com/output/job/b11a0087-8bf9-4999-a74f-b53798eaa77f/artifacts/0/docs/tutorials/audio_io_tutorial.html