Update README.md
Browse files
README.md
CHANGED
@@ -101,16 +101,16 @@ Please notice that we encourage you to read our tutorials and learn more about
|
|
101 |
|
102 |
```python
|
103 |
import torchaudio
|
104 |
-
from speechbrain.
|
105 |
|
106 |
-
classifier = foreign_class(source="
|
107 |
|
108 |
# US Accent Example
|
109 |
-
out_prob, score, index, text_lab = classifier.classify_file('
|
110 |
print(text_lab)
|
111 |
|
112 |
# Philippines Example
|
113 |
-
out_prob, score, index, text_lab = classifier.classify_file('
|
114 |
print(text_lab)
|
115 |
```
|
116 |
|
|
|
101 |
|
102 |
```python
|
103 |
import torchaudio
|
104 |
+
from speechbrain.inference.interfaces import foreign_class
|
105 |
|
106 |
+
classifier = foreign_class(source="warisqr7/accent-id-commonaccent_xlsr-en-english", pymodule_file="custom_interface.py", classname="CustomEncoderWav2vec2Classifier")
|
107 |
|
108 |
# US Accent Example
|
109 |
+
out_prob, score, index, text_lab = classifier.classify_file('warisqr7/accent-id-commonaccent_xlsr-en-english/data/us.wav')
|
110 |
print(text_lab)
|
111 |
|
112 |
# Philippines Example
|
113 |
+
out_prob, score, index, text_lab = classifier.classify_file('warisqr7/accent-id-commonaccent_xlsr-en-english/data/philippines.wav')
|
114 |
print(text_lab)
|
115 |
```
|
116 |
|