Any way to load audio from a buffer, pydub, or numpy? #1301
-
I have a process where I'm segmenting songs in 5-second chunks and doing analysis on the chunks. The process is currently based on librosa and I'd like to try using essentia instead. Currently, I'm loading with pydub and creating AudioSegments for each 5-second chunk. Is there a way to reproduce this behaviour in essentia? I know about FrameCutter, but I feel like that's intended for the low-level analysis, whereas this is more a high-level chunking over which the low-level analysis will be performed. Is it maybe an option to have 2 FrameCutters, at different frame/hop sizes—e.g., |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Hi, @jbmaxwell To use buffer inputs in the streaming mode of Essentia you can use VectorInput. |
Beta Was this translation helpful? Give feedback.
-
Excellent! |
Beta Was this translation helpful? Give feedback.
Hi, @jbmaxwell
You can use the FrameCutter in the way you mention. Make sure to set the
startFromZero
parameter as you need. There is also the Slicer algorithm that cuts into slices given start and end time positions.To use buffer inputs in the streaming mode of Essentia you can use VectorInput.