Skip to content

Encoding: address some TODOs #667

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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

NicolasHug
Copy link
Member

@NicolasHug NicolasHug commented Apr 29, 2025

This PR addresses a few outstanding TODO-ENCODING entries. See diff for (hopefully obvious!) changes.

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Meta Open Source bot. label Apr 29, 2025
@NicolasHug NicolasHug changed the title Enforce that encode() cannot be called twice Encoding: address remaining TODOs Apr 30, 2025
@@ -394,8 +394,6 @@ void encode_audio_to_file(
.encode();
}

// TODO-ENCODING is "format" a good parameter name?? It kinda conflicts with
// "sample_format" which we may eventually want to expose.
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

torchaudio.load() uses format as well, so I think that's fine. We haven't discussed the public API yet anyway.

@NicolasHug NicolasHug changed the title Encoding: address remaining TODOs Encoding: address some TODOs Apr 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Meta Open Source bot.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants