GetmanY1 commited on
Commit
d08907e
·
1 Parent(s): cf20a06
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -9,7 +9,7 @@ def transcribe(input_audio):
9
  speech = speech.mean(axis=1)
10
  # Resample if sampling rate is not 16kHz
11
  if sr!=16000:
12
- speech = librosa.resample(speech, orig_sr=sr, target_sr=16000)
13
  output = pipe(speech, chunk_length_s=30, stride_length_s=5)['text']
14
  return output
15
 
 
9
  speech = speech.mean(axis=1)
10
  # Resample if sampling rate is not 16kHz
11
  if sr!=16000:
12
+ speech = resample(speech, orig_sr=sr, target_sr=16000)
13
  output = pipe(speech, chunk_length_s=30, stride_length_s=5)['text']
14
  return output
15