Update asr.py
Browse files
asr.py
CHANGED
@@ -33,7 +33,7 @@ def transcribe(audio):
|
|
33 |
|
34 |
# Process the audio with the pipeline
|
35 |
try:
|
36 |
-
transcription = pipe(audio_samples
|
37 |
except Exception as e:
|
38 |
logging.error(f"Error during transcription with pipeline: {e}")
|
39 |
return f"ERROR: Transcription failed - {e}"
|
|
|
33 |
|
34 |
# Process the audio with the pipeline
|
35 |
try:
|
36 |
+
transcription = pipe(audio_samples)["text"]
|
37 |
except Exception as e:
|
38 |
logging.error(f"Error during transcription with pipeline: {e}")
|
39 |
return f"ERROR: Transcription failed - {e}"
|