File size: 235 Bytes
cb3f1b9
 
 
 
 
 
 
1
2
3
4
5
6
7
8
import torchaudio
from speechbrain.pretrained import EncoderClassifier
classifier = EncoderClassifier.from_hparams(source=".")
signal, fs =torchaudio.load('example1.wav')
embeddings = classifier.encode_batch(signal)

print(embeddings)