Adel-Moumen commited on
Commit
437ecef
1 Parent(s): e2cc27f

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +1 -1
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.pretrained import EncoderClassifier
62
  classifier = EncoderClassifier.from_hparams(source="speechbrain/spkrec-xvect-voxceleb", savedir="pretrained_models/spkrec-xvect-voxceleb")
63
  signal, fs =torchaudio.load('tests/samples/ASR/spk1_snt1.wav')
64
  embeddings = classifier.encode_batch(signal)
 
58
 
59
  ```python
60
  import torchaudio
61
+ from speechbrain.inference.speaker import EncoderClassifier
62
  classifier = EncoderClassifier.from_hparams(source="speechbrain/spkrec-xvect-voxceleb", savedir="pretrained_models/spkrec-xvect-voxceleb")
63
  signal, fs =torchaudio.load('tests/samples/ASR/spk1_snt1.wav')
64
  embeddings = classifier.encode_batch(signal)