Adel-Moumen
commited on
Commit
•
667393f
1
Parent(s):
fd7b2d5
Update README.md
Browse files
README.md
CHANGED
@@ -58,7 +58,7 @@ Please notice that we encourage you to read our tutorials and learn more about
|
|
58 |
|
59 |
```python
|
60 |
import torchaudio
|
61 |
-
from speechbrain.
|
62 |
classifier = EncoderClassifier.from_hparams(source="speechbrain/spkrec-resnet-voxceleb")
|
63 |
signal, fs =torchaudio.load('samples/audio_samples/example1.wav')
|
64 |
embeddings = classifier.encode_batch(signal)
|
@@ -67,7 +67,7 @@ embeddings = classifier.encode_batch(signal)
|
|
67 |
### Perform Speaker Verification
|
68 |
|
69 |
```python
|
70 |
-
from speechbrain.
|
71 |
verification = SpeakerRecognition.from_hparams(source="speechbrain/spkrec-resnet-voxceleb", savedir="pretrained_models/spkrec-resnet-voxceleb")
|
72 |
score, prediction = verification.verify_files("speechbrain/spkrec-resnet-voxceleb/example1.wav", "speechbrain/spkrec-resnet-voxceleb/example2.flac")
|
73 |
```
|
|
|
58 |
|
59 |
```python
|
60 |
import torchaudio
|
61 |
+
from speechbrain.inference.speaker import EncoderClassifier
|
62 |
classifier = EncoderClassifier.from_hparams(source="speechbrain/spkrec-resnet-voxceleb")
|
63 |
signal, fs =torchaudio.load('samples/audio_samples/example1.wav')
|
64 |
embeddings = classifier.encode_batch(signal)
|
|
|
67 |
### Perform Speaker Verification
|
68 |
|
69 |
```python
|
70 |
+
from speechbrain.inference.speaker import SpeakerRecognition
|
71 |
verification = SpeakerRecognition.from_hparams(source="speechbrain/spkrec-resnet-voxceleb", savedir="pretrained_models/spkrec-resnet-voxceleb")
|
72 |
score, prediction = verification.verify_files("speechbrain/spkrec-resnet-voxceleb/example1.wav", "speechbrain/spkrec-resnet-voxceleb/example2.flac")
|
73 |
```
|