Update README.md
Browse files
README.md
CHANGED
@@ -19,16 +19,16 @@ metrics:
|
|
19 |
widget:
|
20 |
- example_title: Caribe-Colombia-Cuba
|
21 |
src: >-
|
22 |
-
https://huggingface.co/Jzuluaga/accent-id-commonaccent_xlsr-spanish/resolve/main/data/caribe-cuba-colombia.wav
|
23 |
- example_title: Andino
|
24 |
src: >-
|
25 |
-
https://huggingface.co/Jzuluaga/accent-id-commonaccent_xlsr-spanish/resolve/main/data/andino.wav
|
26 |
- example_title: Mexico
|
27 |
src: >-
|
28 |
-
https://huggingface.co/Jzuluaga/accent-id-commonaccent_xlsr-
|
29 |
- example_title: Spain
|
30 |
src: >-
|
31 |
-
https://huggingface.co/Jzuluaga/accent-id-commonaccent_xlsr-spanish/resolve/main/data/spain.wav
|
32 |
---
|
33 |
|
34 |
|
@@ -96,14 +96,14 @@ Please notice that we encourage you to read our tutorials and learn more about
|
|
96 |
import torchaudio
|
97 |
from speechbrain.pretrained.interfaces import foreign_class
|
98 |
|
99 |
-
classifier = foreign_class(source="Jzuluaga/accent-id-commonaccent_xlsr-spanish", pymodule_file="custom_interface.py", classname="CustomEncoderWav2vec2Classifier")
|
100 |
|
101 |
# Cuban Accent Example
|
102 |
-
out_prob, score, index, text_lab = classifier.classify_file('Jzuluaga/accent-id-commonaccent_xlsr-spanish/data/mexico.wav')
|
103 |
print(text_lab)
|
104 |
|
105 |
# Caribbean Example
|
106 |
-
out_prob, score, index, text_lab = classifier.classify_file('Jzuluaga/accent-id-commonaccent_xlsr-spanish/data/caribe-cuba-colombia.wav')
|
107 |
print(text_lab)
|
108 |
```
|
109 |
|
|
|
19 |
widget:
|
20 |
- example_title: Caribe-Colombia-Cuba
|
21 |
src: >-
|
22 |
+
https://huggingface.co/Jzuluaga/accent-id-commonaccent_xlsr-es-spanish/resolve/main/data/caribe-cuba-colombia.wav
|
23 |
- example_title: Andino
|
24 |
src: >-
|
25 |
+
https://huggingface.co/Jzuluaga/accent-id-commonaccent_xlsr-es-spanish/resolve/main/data/andino.wav
|
26 |
- example_title: Mexico
|
27 |
src: >-
|
28 |
+
https://huggingface.co/Jzuluaga/accent-id-commonaccent_xlsr-es-panish/resolve/main/data/mexico.wav
|
29 |
- example_title: Spain
|
30 |
src: >-
|
31 |
+
https://huggingface.co/Jzuluaga/accent-id-commonaccent_xlsr-es-spanish/resolve/main/data/spain.wav
|
32 |
---
|
33 |
|
34 |
|
|
|
96 |
import torchaudio
|
97 |
from speechbrain.pretrained.interfaces import foreign_class
|
98 |
|
99 |
+
classifier = foreign_class(source="Jzuluaga/accent-id-commonaccent_xlsr-es-spanish", pymodule_file="custom_interface.py", classname="CustomEncoderWav2vec2Classifier")
|
100 |
|
101 |
# Cuban Accent Example
|
102 |
+
out_prob, score, index, text_lab = classifier.classify_file('Jzuluaga/accent-id-commonaccent_xlsr-es-spanish/data/mexico.wav')
|
103 |
print(text_lab)
|
104 |
|
105 |
# Caribbean Example
|
106 |
+
out_prob, score, index, text_lab = classifier.classify_file('Jzuluaga/accent-id-commonaccent_xlsr-es-spanish/data/caribe-cuba-colombia.wav')
|
107 |
print(text_lab)
|
108 |
```
|
109 |
|