Update README.md
Browse files
README.md
CHANGED
@@ -31,6 +31,7 @@ widget:
|
|
31 |
<iframe src="https://ghbtns.com/github-btn.html?user=speechbrain&repo=speechbrain&type=star&count=true&size=large&v=2" frameborder="0" scrolling="0" width="170" height="30" title="GitHub"></iframe>
|
32 |
<br/><br/>
|
33 |
|
|
|
34 |
# CommonAccent: Exploring Large Acoustic Pretrained Models for Accent Classification Based on Common Voice
|
35 |
|
36 |
|
@@ -56,6 +57,8 @@ The provided system can recognize the following 16 accents from short speech rec
|
|
56 |
<a href="https://github.com/JuanPZuluaga/accent-recog-slt2022"> <img alt="GitHub" src="https://img.shields.io/badge/GitHub-Open%20source-green"> </a> Github repository link: https://github.com/JuanPZuluaga/accent-recog-slt2022
|
57 |
|
58 |
|
|
|
|
|
59 |
For a better experience, we encourage you to learn more about
|
60 |
[SpeechBrain](https://speechbrain.github.io). The given model performance on the test set is:
|
61 |
|
@@ -85,13 +88,15 @@ Please notice that we encourage you to read our tutorials and learn more about
|
|
85 |
|
86 |
```python
|
87 |
import torchaudio
|
88 |
-
from speechbrain.pretrained import
|
89 |
-
|
|
|
|
|
90 |
# Cuban Accent Example
|
91 |
out_prob, score, index, text_lab = classifier.classify_file('Jzuluaga/accent-id-commonaccent_xlsr-spanish/data/mexico.wav')
|
92 |
print(text_lab)
|
93 |
|
94 |
-
#
|
95 |
out_prob, score, index, text_lab = classifier.classify_file('Jzuluaga/accent-id-commonaccent_xlsr-spanish/data/caribe-cuba-colombia.wav')
|
96 |
print(text_lab)
|
97 |
```
|
|
|
31 |
<iframe src="https://ghbtns.com/github-btn.html?user=speechbrain&repo=speechbrain&type=star&count=true&size=large&v=2" frameborder="0" scrolling="0" width="170" height="30" title="GitHub"></iframe>
|
32 |
<br/><br/>
|
33 |
|
34 |
+
|
35 |
# CommonAccent: Exploring Large Acoustic Pretrained Models for Accent Classification Based on Common Voice
|
36 |
|
37 |
|
|
|
57 |
<a href="https://github.com/JuanPZuluaga/accent-recog-slt2022"> <img alt="GitHub" src="https://img.shields.io/badge/GitHub-Open%20source-green"> </a> Github repository link: https://github.com/JuanPZuluaga/accent-recog-slt2022
|
58 |
|
59 |
|
60 |
+
**NOTE**: we do not provide the Inference API, because we need a new class for Inference. Please, follow the steps in **"Perform Accent Identification from Speech Recordings"** to use this Spanish Accent ID model.
|
61 |
+
|
62 |
For a better experience, we encourage you to learn more about
|
63 |
[SpeechBrain](https://speechbrain.github.io). The given model performance on the test set is:
|
64 |
|
|
|
88 |
|
89 |
```python
|
90 |
import torchaudio
|
91 |
+
from speechbrain.pretrained.interfaces import foreign_class
|
92 |
+
|
93 |
+
classifier = foreign_class(source="Jzuluaga/accent-id-commonaccent_xlsr-spanish", pymodule_file="custom_interface.py", classname="CustomEncoderWav2vec2Classifier")
|
94 |
+
|
95 |
# Cuban Accent Example
|
96 |
out_prob, score, index, text_lab = classifier.classify_file('Jzuluaga/accent-id-commonaccent_xlsr-spanish/data/mexico.wav')
|
97 |
print(text_lab)
|
98 |
|
99 |
+
# Caribbean Example
|
100 |
out_prob, score, index, text_lab = classifier.classify_file('Jzuluaga/accent-id-commonaccent_xlsr-spanish/data/caribe-cuba-colombia.wav')
|
101 |
print(text_lab)
|
102 |
```
|