speechbrainteam
commited on
Commit
·
42d8be4
1
Parent(s):
7698a10
Update README.md
Browse files
README.md
CHANGED
@@ -61,7 +61,7 @@ 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")
|
65 |
signal, fs =torchaudio.load('samples/audio_samples/example1.wav')
|
66 |
signal2, fs = torchaudio.load('samples/audio_samples/example2.flac')
|
67 |
score, prediction = verification.verify_batch(signal, signal2)
|
|
|
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 |
signal, fs =torchaudio.load('samples/audio_samples/example1.wav')
|
66 |
signal2, fs = torchaudio.load('samples/audio_samples/example2.flac')
|
67 |
score, prediction = verification.verify_batch(signal, signal2)
|