Skip to content
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

Update and deprecate apply_codec function #3386

Closed
wants to merge 1 commit into from

Conversation

mthrok
Copy link
Collaborator

@mthrok mthrok commented May 29, 2023

To prepare for the upcoming removal of file-like object support from sox_io backend,
this commit changes apply_codec function to use tempfile.

apply_codec function is now deprecated and users are encourated to use torchaudio.io.AudioEffector.
We will not remove the function itself, but will remove the entry from the doc.

@pytorch-bot
Copy link

pytorch-bot bot commented May 29, 2023

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/audio/3386

Note: Links to docs will display an error until the docs builds have been completed.

❌ 3 New Failures

As of commit 688661d:

NEW FAILURES - The following jobs have failed:

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@mthrok mthrok changed the title Apply codec Update apply_codec function to FFmpeg-based May 29, 2023
@mthrok mthrok force-pushed the apply-codec branch 4 times, most recently from ba49661 to 0410f2b Compare May 31, 2023 20:09
@mthrok mthrok changed the title Update apply_codec function to FFmpeg-based Use tempfile in apply_codec function May 31, 2023
@mthrok mthrok changed the title Use tempfile in apply_codec function Update and deprecate apply_codec function May 31, 2023
@mthrok mthrok marked this pull request as ready for review May 31, 2023 20:17
@facebook-github-bot
Copy link
Contributor

@mthrok has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

To prepare for the upcoming removal of file-like object support from sox_io backend,
this commit changes apply_codec function to use tempfile.

`apply_codec` function is now deprecated and users are encourated to use
`torchaudio.io.AudioEffector`.

We will not remove the function itself, but will remove the entry from the doc.
@facebook-github-bot
Copy link
Contributor

@mthrok has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@facebook-github-bot
Copy link
Contributor

@mthrok merged this pull request in d6dd497.

mthrok added a commit to mthrok/audio that referenced this pull request Jun 1, 2023
Follow-up pytorch#3386 The intended change was to use path of temporary
file, instead of file-like object
mthrok added a commit to mthrok/audio that referenced this pull request Jun 1, 2023
Follow-up pytorch#3386 The intended change was to use path of temporary
file, instead of file-like object
mthrok added a commit to mthrok/audio that referenced this pull request Jun 1, 2023
Summary:
Follow-up pytorch#3386 The intended change was to use path of temporary file, instead of file-like object

Pull Request resolved: pytorch#3397

Reviewed By: hwangjeff

Differential Revision: D46346189

Pulled By: mthrok

fbshipit-source-id: e6bd30c6d749afb0b7505a2955cfac732d0b76f5
facebook-github-bot pushed a commit that referenced this pull request Jun 1, 2023
Summary:
Follow-up #3386 The intended change was to use path of temporary file, instead of file-like object

Pull Request resolved: #3397

Reviewed By: hwangjeff

Differential Revision: D46346189

Pulled By: mthrok

fbshipit-source-id: 44da799c6587bcb63a118a6313b7299bad742a40
@mthrok mthrok deleted the apply-codec branch June 1, 2023 16:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants