i need to verify this pretrained model on another datasets xith multiple wave file how to arrange the code
#7
by
messaoudi
- opened
No description provided.
For batched inference, you can use the sample code provided here:
To load wave files, you can use audiofile
:
filelist = ["audio1.wav", "audio2.wav"] # wav files
import audiofile
sampling_rate = 16000
signals = []
for fn in filelist:
signal, sr = audiofile.read(fn)
assert sr == sampling_rate
signals.append(signal)