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

How to save left and right channel in separate files? #429

Open
iCUE-Solutions opened this issue Mar 21, 2024 · 1 comment
Open

How to save left and right channel in separate files? #429

iCUE-Solutions opened this issue Mar 21, 2024 · 1 comment

Comments

@iCUE-Solutions
Copy link

Is there a way to save the left and right channel of a recording into separate files? I'm currently splitting the wav files after but given how comprehensive the soundfile lib is, I feel it might be there already.

Any help in this matter is really appreciated.

@bastibe
Copy link
Owner

bastibe commented Mar 22, 2024

You get a frames x channels numpy array, so just index into that (audio[:, 0] for the first channel).

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

No branches or pull requests

2 participants