Add OGG and other audio format support (.ogg, .oga, .opus, .flac)

This commit is contained in:
Dominic Ballenthin
2026-01-29 01:29:53 +01:00
parent c5ecd2ee76
commit 0363b8b60e

View File

@@ -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: