Commit
·
c38d576
1
Parent(s):
1464ca7
Update README.md
Browse files
README.md
CHANGED
|
@@ -14,7 +14,7 @@ datasets:
|
|
| 14 |
- voxceleb
|
| 15 |
metrics:
|
| 16 |
- EER
|
| 17 |
-
|
| 18 |
---
|
| 19 |
|
| 20 |
# Speaker Verification with ECAPA-TDNN embeddings on Voxceleb
|
|
@@ -61,10 +61,8 @@ embeddings = verification.encode_batch(signal)
|
|
| 61 |
```python
|
| 62 |
import torchaudio
|
| 63 |
from speechbrain.pretrained import SpeakerRecognition
|
| 64 |
-
verification = SpeakerRecognition.from_hparams(source="speechbrain/spkrec-ecapa-voxceleb", savedir="pretrained_models/spkrec-ecapa-voxceleb)
|
| 65 |
-
|
| 66 |
-
signal2, fs = torchaudio.load('samples/audio_samples/example2.flac')
|
| 67 |
-
score, prediction = verification.verify_batch(signal, signal2)
|
| 68 |
```
|
| 69 |
The prediction is 1 if the two signals in input are from the same speaker and 0 otherwise.
|
| 70 |
|
|
|
|
| 14 |
- voxceleb
|
| 15 |
metrics:
|
| 16 |
- EER
|
| 17 |
+
|
| 18 |
---
|
| 19 |
|
| 20 |
# Speaker Verification with ECAPA-TDNN embeddings on Voxceleb
|
|
|
|
| 61 |
```python
|
| 62 |
import torchaudio
|
| 63 |
from speechbrain.pretrained import SpeakerRecognition
|
| 64 |
+
verification = SpeakerRecognition.from_hparams(source="speechbrain/spkrec-ecapa-voxceleb", savedir="pretrained_models/spkrec-ecapa-voxceleb")
|
| 65 |
+
score, prediction = verification.verify_files("speechbrain/spkrec-ecapa-voxceleb/example1.wav", "speechbrain/spkrec-ecapa-voxceleb/example2.flac")
|
|
|
|
|
|
|
| 66 |
```
|
| 67 |
The prediction is 1 if the two signals in input are from the same speaker and 0 otherwise.
|
| 68 |
|