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)