speechbrainteam
commited on
Commit
•
56895a2
1
Parent(s):
437ecef
Update README.md
Browse files
README.md
CHANGED
@@ -60,7 +60,7 @@ Please notice that we encourage you to read our tutorials and learn more about
|
|
60 |
import torchaudio
|
61 |
from speechbrain.inference.speaker import EncoderClassifier
|
62 |
classifier = EncoderClassifier.from_hparams(source="speechbrain/spkrec-xvect-voxceleb", savedir="pretrained_models/spkrec-xvect-voxceleb")
|
63 |
-
signal, fs =torchaudio.load('tests/samples/ASR/spk1_snt1.wav')
|
64 |
embeddings = classifier.encode_batch(signal)
|
65 |
```
|
66 |
|
|
|
60 |
import torchaudio
|
61 |
from speechbrain.inference.speaker import EncoderClassifier
|
62 |
classifier = EncoderClassifier.from_hparams(source="speechbrain/spkrec-xvect-voxceleb", savedir="pretrained_models/spkrec-xvect-voxceleb")
|
63 |
+
signal, fs = torchaudio.load('tests/samples/ASR/spk1_snt1.wav')
|
64 |
embeddings = classifier.encode_batch(signal)
|
65 |
```
|
66 |
|