From ae791815797b96e8fb051705fac9868c4b54afc9 Mon Sep 17 00:00:00 2001 From: Elite Encoder Date: Thu, 4 Jul 2024 14:41:45 -0400 Subject: [PATCH] Fix MP4 support for various audio formats --- runner/app/routes/speech_to_text.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runner/app/routes/speech_to_text.py b/runner/app/routes/speech_to_text.py index 456b53c3..80207d0e 100644 --- a/runner/app/routes/speech_to_text.py +++ b/runner/app/routes/speech_to_text.py @@ -53,7 +53,7 @@ async def speech_to_text( try: # Check the extension and convert the file if necessary - if audio.filename.endswith(".m4a"): + if audio.filename.endswith(".m4a") or audio.filename.endswith(".mp4"): logger.info("Converting m4a file to mp3") conv = AudioConverter() converted_bytes = conv.m4a_to_mp3(audio)