mirror of
https://git.mirrors.martin98.com/https://github.com/open-webui/open-webui
synced 2025-08-18 03:35:54 +08:00
fix: convert webm to wav for OpenAI transcription endpoint
This commit is contained in:
parent
d99a883867
commit
4731e0d0e3
@ -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
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user