Spaces:
Running
Running
bofenghuang
commited on
Commit
•
7529d20
1
Parent(s):
ac74d22
- run_demo.py +2 -2
run_demo.py
CHANGED
@@ -57,8 +57,8 @@ def transcribe(microphone_audio_file, uploaded_audio_file):
|
|
57 |
|
58 |
audio_data = process_audio_file(audio_file)
|
59 |
|
60 |
-
# text = pipe(audio_data
|
61 |
-
text = pipe(audio_data)["text"]
|
62 |
logger.info(f"Transcription for {audio_file}: {text}")
|
63 |
|
64 |
return warning_message + text
|
|
|
57 |
|
58 |
audio_data = process_audio_file(audio_file)
|
59 |
|
60 |
+
# text = pipe(audio_data)["text"]
|
61 |
+
text = pipe(audio_data, chunk_length_s=30, stride_length_s=5)["text"]
|
62 |
logger.info(f"Transcription for {audio_file}: {text}")
|
63 |
|
64 |
return warning_message + text
|