From 0363b8b60e90298113ad7d4366d4771f0911d470 Mon Sep 17 00:00:00 2001 From: Dominic Ballenthin Date: Thu, 29 Jan 2026 01:29:53 +0100 Subject: [PATCH] Add OGG and other audio format support (.ogg, .oga, .opus, .flac) --- src/api/transcriptions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/transcriptions.py b/src/api/transcriptions.py index 5c56467..15ea115 100644 --- a/src/api/transcriptions.py +++ b/src/api/transcriptions.py @@ -99,7 +99,7 @@ async def create_transcription( try: # Validate file type - allowed_extensions = {'.mp3', '.mp4', '.mpeg', '.mpga', '.m4a', '.wav', '.webm'} + allowed_extensions = {'.mp3', '.mp4', '.mpeg', '.mpga', '.m4a', '.wav', '.webm', '.ogg', '.oga', '.opus', '.flac'} file_ext = os.path.splitext(file.filename)[1].lower() if file_ext not in allowed_extensions: