Problem with extracting MFCCs into json file

192 views
Skip to first unread message

sloww

unread,
May 17, 2021, 12:02:06 AM5/17/21
to librosa
Hi everyone,
I am working on developing a Vocal Detection System. I am extracting MFCCs from the audio (wav file) to prepare input dataset and labels for training a Vocal Detection System with CNN. However, after I formed a vocal time stamp list (including the starting time and ending time of the lyrics in the song) and try passing the (starting time and ending time) into the librosa.feature.mfcc to extract the MFCCs within a specific time interval, the program failed after running. I have tried to add a print function to track the extracted MFCCs which has a good result.
Any idea what would be the reason?

error1.PNGerror2.PNG

Brian McFee

unread,
May 17, 2021, 9:48:27 AM5/17/21
to librosa
Looks to me like you're trying to compute features on an empty buffer.

sloww

unread,
May 17, 2021, 1:53:55 PM5/17/21
to librosa
Thank You for your help with my problem! But I don't understand what is the empty buffer. Is it used to save the features? So what I am trying to do is to save the MFCCs and their labels (0 for non-vocal) and (1 for vocal) into a dictionary. I have added my code for doing the Feature Extraction Process and saving them into a dictionary below.
1code1.PNG1code2.PNG
Reply all
Reply to author
Forward
Message has been deleted
Message has been deleted
0 new messages