refac: audio transcribe supported filetype

This commit is contained in:
Timothy Jaeryang Baek 2025-05-05 23:42:56 +04:00
parent 27da31dc83
commit 7b36466c1c

View File

@ -789,7 +789,13 @@ def transcription(
):
log.info(f"file.content_type: {file.content_type}")
supported_filetypes = ("audio/mpeg", "audio/wav", "audio/ogg", "audio/x-m4a")
supported_filetypes = (
"audio/mpeg",
"audio/wav",
"audio/ogg",
"audio/x-m4a",
"audio/webm",
)
if not file.content_type.startswith(supported_filetypes):
raise HTTPException(