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.
audEERING GmbH org

For batched inference, you can use the sample code provided here:

https://huggingface.co/audeering/wav2vec2-large-robust-12-ft-emotion-msp-dim/discussions/8#661807540da4c017c4df2bd4

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)
Publish this branch
This branch is in draft mode, publish it to be able to merge.

Sign up or log in to comment