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) | |
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) | |