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

In memory decoding #53

Open
akademi4eg opened this issue Jun 23, 2017 · 3 comments
Open

In memory decoding #53

akademi4eg opened this issue Jun 23, 2017 · 3 comments

Comments

@akademi4eg
Copy link

Hi guys!
I have audio files contents stored in-memory and need to decode audio. In current version all backends accept pathlike argument (which is then passed to open()).

Are there any plans to extend your interface to also accept streams of data (e.g. BytesIO)?

@akademi4eg
Copy link
Author

I use only wav-files and already have implementation for them. Would you accept a PR with updated RawAudioFile backend?

@sampsyo
Copy link
Member

sampsyo commented Jun 23, 2017

Yep! We're working on that in #35 and #37. The latter has a basically-working implementation for in-memory decoding for one backend, FFmpeg. There are just a few more details to hammer out with the high-level interface, and it would be great to have a raw-audio backend too! If you're interested in taking the lead, I'd be very enthusiastic (and I'd help!).

@jksinton
Copy link
Collaborator

The branch under development for this is:

https://github.com/beetbox/audioread/tree/compressed-audio

I'm using this branch in another project to decode mp3 data. See e.g., https://github.com/jksinton/littlesleeper2/blob/master/littlesleeper.py#L453

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

3 participants