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

Piping support for the CLI? #47

Open
Ziao opened this issue Oct 21, 2021 · 1 comment
Open

Piping support for the CLI? #47

Ziao opened this issue Oct 21, 2021 · 1 comment

Comments

@Ziao
Copy link

Ziao commented Oct 21, 2021

First off, amazing library. I have been using this a lot and am very happy with it.
I have one question, is it currently possible to pipe wav files into / out of this tool? When I specify - as the output, I get the following message ERROR: Failed to open output file "-" for writing: Error : this file format does not support pipe write. which may indicate that it's supported but that I am doing something wrong.

If this is not supported, would it be something that is easy to add?

Thanks a lot!
Nick

@cannam
Copy link
Member

cannam commented Jan 7, 2022

The error message comes from libsndfile, I think - the Rubber Band command-line tool just passes filenames direct to libsndfile.

My guess is that libsndfile will write to a pipe if it's writing headerless raw audio data, but refuses to write WAV data to a pipe because WAV has a header that needs to be updated with the data length when the file is closed. Unfortunately there is no way to use raw data with the Rubber Band tool because it would be necessary to specify the details of the raw format explicitly to the program, and that part of the puzzle simply isn't there.

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