Update README.md
Browse files
README.md
CHANGED
|
@@ -66,7 +66,7 @@ Please notice that we encourage you to read our tutorials and learn more about
|
|
| 66 |
|
| 67 |
```python
|
| 68 |
import torchaudio
|
| 69 |
-
from speechbrain.
|
| 70 |
classifier = EncoderClassifier.from_hparams(source="speechbrain/google_speech_command_xvector", savedir="pretrained_models/google_speech_command_xvector")
|
| 71 |
out_prob, score, index, text_lab = classifier.classify_file('speechbrain/google_speech_command_xvector/yes.wav')
|
| 72 |
print(text_lab)
|
|
|
|
| 66 |
|
| 67 |
```python
|
| 68 |
import torchaudio
|
| 69 |
+
from speechbrain.inference.classifiers import EncoderClassifier
|
| 70 |
classifier = EncoderClassifier.from_hparams(source="speechbrain/google_speech_command_xvector", savedir="pretrained_models/google_speech_command_xvector")
|
| 71 |
out_prob, score, index, text_lab = classifier.classify_file('speechbrain/google_speech_command_xvector/yes.wav')
|
| 72 |
print(text_lab)
|