Update app.py
Browse files
app.py
CHANGED
|
@@ -60,7 +60,7 @@ def record_audio(duration, samplerate=16000):
|
|
| 60 |
|
| 61 |
def transcribe_audio(audio_input):
|
| 62 |
# Perform transcription using the pipeline without specifying `sampling_rate`
|
| 63 |
-
result = whisper_pipeline(audio_input)
|
| 64 |
return result['text']
|
| 65 |
|
| 66 |
|
|
|
|
| 60 |
|
| 61 |
def transcribe_audio(audio_input):
|
| 62 |
# Perform transcription using the pipeline without specifying `sampling_rate`
|
| 63 |
+
result = whisper_pipeline(audio_input,return_timestamps=True)
|
| 64 |
return result['text']
|
| 65 |
|
| 66 |
|