I want to load a file from a ZIP file with Librosa's load function.
I already know how to read files from a ZIP using the module ZipFile.
archive = zipfile.ZipFile('audio_data.zip', 'r')
imgfile = archive.open('src_01.wav')
The problem is that Librosa's load function only takes a filepath/filename as its parameter. The following does not work:
y, sr = librosa.load("audio_data.zip/src_01.wav", sr=SR)
Are there any workarounds in loading a compressed file without extracting it?