Concatenate and process audio files with librosa-stream

475 views
Skip to first unread message

Kristian Nymoen

unread,
May 27, 2020, 2:44:09 AM5/27/20
to librosa
Hi,
I'm processing really long audio recordings (several months) split into shorter files (1 hour). I'd like to be able to a processing with overlapping windows through the entire recording - across the individual audio files, but I'm not sure how to handle windows that span two audio files. 
Is there a way to concatenate the files on-read, and load them as a single librosa.stream?

Vincent Lostanlen

unread,
May 27, 2020, 6:41:59 AM5/27/20
to Kristian Nymoen, librosa
Dear Kristian,

Thank you for your question.
At the moment, librosa.stream only works for single-file recordings, and does not offer a simple way to "stitch" multiple files together while streaming them.

That being said, you can combine files offline with pysox.combine

On a more personal leve, i am curious what your use case is? As a matter of fact, i also need to process large volumes of audio, because i work with bio-acousticians on migration monitoring.
Feel free to write an email to me if you wish to share more about your research.

Sincerely,
Vincent.

--
You received this message because you are subscribed to the Google Groups "librosa" group.
To unsubscribe from this group and stop receiving emails from it, send an email to librosa+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/librosa/f4a6293c-5262-44ba-884e-3515475e5cc9%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages