speechbrainteam commited on
Commit
be9631c
1 Parent(s): 7e1b344

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +4 -4
README.md CHANGED
@@ -48,10 +48,10 @@ Please notice that we encourage you to read our tutorials and learn more about
48
 
49
  ```python
50
  import torchaudio
51
- from speechbrain.pretrained import SpeakerRecognition
52
- verification = SpeakerRecognition.from_hparams(source="speechbrain/spkrec-xvect-voxceleb", savedir="pretrained_models/spkrec-xvect-voxceleb")
53
  signal, fs =torchaudio.load('samples/audio_samples/example1.wav')
54
- embeddings = verification.encode_batch(signal)
55
  ```
56
 
57
  #### Referencing xvectors
@@ -79,6 +79,6 @@ embeddings = verification.encode_batch(signal)
79
  year = {2021},
80
  publisher = {GitHub},
81
  journal = {GitHub repository},
82
- howpublished = {\\url{https://github.com/speechbrain/speechbrain}},
83
  }
84
  ```
 
48
 
49
  ```python
50
  import torchaudio
51
+ from speechbrain.pretrained import EncoderClassifier
52
+ classifier = EncoderClassifier.from_hparams(source="speechbrain/spkrec-xvect-voxceleb", savedir="pretrained_models/spkrec-xvect-voxceleb")
53
  signal, fs =torchaudio.load('samples/audio_samples/example1.wav')
54
+ embeddings = classifier.encode_batch(signal)
55
  ```
56
 
57
  #### Referencing xvectors
 
79
  year = {2021},
80
  publisher = {GitHub},
81
  journal = {GitHub repository},
82
+ howpublished = {\\\\url{https://github.com/speechbrain/speechbrain}},
83
  }
84
  ```