refac: audio input (audio/ogg support)
This commit is contained in:
1 parent
0b30dc357c
commit
62f1933e3c
3 files changed
+19
-16
No files matched your search
@@ -309,7 +309,7 @@ def transcribe(
|
||||
):
|
||||
log.info(f"file.content_type: {file.content_type}")
|
||||
|
||||
if file.content_type not in ["audio/mpeg", "audio/wav"]:
|
||||
if file.content_type not in ["audio/mpeg", "audio/wav", "audio/ogg"]:
|
||||
raise HTTPException(
|
||||
status_code=status.HTTP_400_BAD_REQUEST,
|
||||
detail=ERROR_MESSAGES.FILE_NOT_SUPPORTED,
|
||||
|
||||
Reference in new issue
Block a user