Spaces:
Running
Running
fix typo
Browse files
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 =
|
| 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 |
|