浏览代码

fix: convert webm to wav for OpenAI transcription endpoint

Thomas Rehn 6 月之前
父节点
当前提交
4731e0d0e3
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      backend/open_webui/routers/audio.py

+ 2 - 0
backend/open_webui/routers/audio.py

@@ -83,6 +83,8 @@ def audio_needs_conversion(file_path):
         return "mp4"
     elif info.get("format_name") == "ogg":
         return "ogg"
+    elif info.get("format_name") == "matroska,webm":
+        return "webm"
     return None