Skip to content

Add bit depth option (16/24-bit) to SaveAudio node #7629

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 1 commit into
base: master
Choose a base branch
from

Conversation

MuziekMagie
Copy link

This PR adds a bit_depth input to the SaveAudio node, allowing users to choose between 16-bit and 24-bit FLAC output.

Why this is useful:

24-bit audio provides higher dynamic range and better fidelity, which can be helpful for audio processing, editing, or mastering workflows. This gives users more control over audio quality when needed.

Changes:

  • Added bit_depth input (16 or 24) to the node
  • Passed bits_per_sample to torchaudio.save() accordingly
  • Default is 16-bit to match previous behavior

No breaking changes—existing setups will continue to work as before.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant