Spaces:
Runtime error
Runtime error
fix spanish asr
Browse files
README.md
CHANGED
@@ -13,3 +13,4 @@ license: MIT
|
|
13 |
|
14 |
# CVMX-jaca-tonos
|
15 |
un proyecto de identificación de idiomas para el jacatón de Common Voice MX
|
|
|
|
13 |
|
14 |
# CVMX-jaca-tonos
|
15 |
un proyecto de identificación de idiomas para el jacatón de Common Voice MX
|
16 |
+
https://huggingface.co/spaces/CVMX-jaca-tonos/Identificar-lenguas-y-frases
|
app.py
CHANGED
@@ -51,7 +51,7 @@ def client(audio_data: np.array, sample_rate: int, default_lang: str):
|
|
51 |
if text_lab == 'Spanish':
|
52 |
text_lab = 'español'
|
53 |
asr_pipeline = STT_MODELS['español']
|
54 |
-
result = asr_pipeline(
|
55 |
|
56 |
else:
|
57 |
text_lab = default_lang
|
|
|
51 |
if text_lab == 'Spanish':
|
52 |
text_lab = 'español'
|
53 |
asr_pipeline = STT_MODELS['español']
|
54 |
+
result = asr_pipeline(audio, chunk_length_s=5, stride_length_s=1)['text']
|
55 |
|
56 |
else:
|
57 |
text_lab = default_lang
|