From 7b36466c1cb38fc0853f06cc87863442248878e6 Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Mon, 5 May 2025 23:42:56 +0400 Subject: [PATCH] refac: audio transcribe supported filetype --- backend/open_webui/routers/audio.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/backend/open_webui/routers/audio.py b/backend/open_webui/routers/audio.py index fba41af4c..0153eb10d 100644 --- a/backend/open_webui/routers/audio.py +++ b/backend/open_webui/routers/audio.py @@ -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(