Commit
·
5595f4d
1
Parent(s):
7624bbf
Update README.md
Browse files
README.md
CHANGED
@@ -50,10 +50,10 @@ Please notice that we encourage you to read our tutorials and learn more about
|
|
50 |
|
51 |
```python
|
52 |
import torchaudio
|
53 |
-
from speechbrain.pretrained import
|
54 |
-
|
55 |
signal, fs =torchaudio.load('samples/audio_samples/example1.wav')
|
56 |
-
embeddings =
|
57 |
```
|
58 |
|
59 |
### Perform Speaker Verification
|
@@ -93,6 +93,6 @@ score, prediction = verification.verify_files("speechbrain/spkrec-ecapa-voxceleb
|
|
93 |
year = {2021},
|
94 |
publisher = {GitHub},
|
95 |
journal = {GitHub repository},
|
96 |
-
howpublished = {
|
97 |
}
|
98 |
```
|
|
|
50 |
|
51 |
```python
|
52 |
import torchaudio
|
53 |
+
from speechbrain.pretrained import EncoderClassifier
|
54 |
+
classifier = EncoderClassifier.from_hparams(source="speechbrain/spkrec-ecapa-voxceleb")
|
55 |
signal, fs =torchaudio.load('samples/audio_samples/example1.wav')
|
56 |
+
embeddings = classifier.encode_batch(signal)
|
57 |
```
|
58 |
|
59 |
### Perform Speaker Verification
|
|
|
93 |
year = {2021},
|
94 |
publisher = {GitHub},
|
95 |
journal = {GitHub repository},
|
96 |
+
howpublished = {\\url{https://github.com/speechbrain/speechbrain}},
|
97 |
}
|
98 |
```
|