Skip to content

Commit

Permalink
Fix MP4 support for various audio formats
Browse files Browse the repository at this point in the history
  • Loading branch information
eliteprox committed Jul 4, 2024
1 parent 3e75dc4 commit ae79181
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion runner/app/routes/speech_to_text.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit ae79181

Please sign in to comment.