gorinars's picture
model added
cb3f1b9
raw
history blame contribute delete
235 Bytes
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)