lucio commited on
Commit
2bf0d37
1 Parent(s): f200d27

fix spanish asr

Browse files
Files changed (2) hide show
  1. README.md +1 -0
  2. app.py +1 -1
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(waveform, chunk_length_s=5, stride_length_s=1)['text']
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