yangwang825
commited on
Commit
•
80420dd
1
Parent(s):
07f32ca
Update README.md
Browse files
README.md
CHANGED
@@ -13,7 +13,9 @@ The system is trained with recordings sampled at 16kHz (single channel).
|
|
13 |
```python
|
14 |
import torchaudio
|
15 |
from speechbrain.pretrained import EncoderClassifier
|
16 |
-
classifier = EncoderClassifier.from_hparams(
|
|
|
|
|
17 |
signal, fs = torchaudio.load('spk1_snt1.wav')
|
18 |
embeddings = classifier.encode_batch(signal)
|
19 |
```
|
|
|
13 |
```python
|
14 |
import torchaudio
|
15 |
from speechbrain.pretrained import EncoderClassifier
|
16 |
+
classifier = EncoderClassifier.from_hparams(
|
17 |
+
source="yangwang825/ecapa-tdnn-vox2"
|
18 |
+
)
|
19 |
signal, fs = torchaudio.load('spk1_snt1.wav')
|
20 |
embeddings = classifier.encode_batch(signal)
|
21 |
```
|