You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Freesound API is often used to download sounds to disk and then load them in numpy arrays (or other types of data structures). It would be useful to add a method to handle this process automatically. It could even be a parameter for the retrieve or retrieve_preview methods of Sound class which, when set, would directly return the audio contents loaded in a numpy array. Internally the method would download the file in a temporary location, load it in Python and delete the file in disk.
This will require to use 3rd party packages to load the audio file. We can make this optional and will only work if user has dependencies installed. Probably the best way to do it would be using essentia as it will be able to load both previews and original files in all formats.
The text was updated successfully, but these errors were encountered:
The Freesound API is often used to download sounds to disk and then load them in
numpy
arrays (or other types of data structures). It would be useful to add a method to handle this process automatically. It could even be a parameter for theretrieve
orretrieve_preview
methods ofSound
class which, when set, would directly return the audio contents loaded in a numpy array. Internally the method would download the file in a temporary location, load it in Python and delete the file in disk.This will require to use 3rd party packages to load the audio file. We can make this optional and will only work if user has dependencies installed. Probably the best way to do it would be using
essentia
as it will be able to load both previews and original files in all formats.The text was updated successfully, but these errors were encountered: