It could be nice to have the option to use a file-like as input audio file for the tagger - or more broadly, a file from memory.
I see this particularly applicable in a case where audio files have to be disposed after auto tagging, i.e. the service lives in the cloud with limited resources. Python tempfile.TemporaryFile() would be the best option to use given such scenario.
Librosa docs suggest to use directly soundfile library and then resample to achieve the same effect as librosa.load().
It could be nice to have the option to use a file-like as input audio file for the
tagger
- or more broadly, a file from memory. I see this particularly applicable in a case where audio files have to be disposed after auto tagging, i.e. the service lives in the cloud with limited resources. Pythontempfile.TemporaryFile()
would be the best option to use given such scenario.Librosa docs suggest to use directly
soundfile
library and then resample to achieve the same effect aslibrosa.load()
.