From 2f377f6dc69937c3da92d838c3d913768b4aa175 Mon Sep 17 00:00:00 2001 From: Benson Wong Date: Thu, 26 Feb 2026 19:48:19 -0800 Subject: [PATCH] ui: add OGG audio format support to transcription playground (#544) --- ui-svelte/src/components/playground/AudioInterface.svelte | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ui-svelte/src/components/playground/AudioInterface.svelte b/ui-svelte/src/components/playground/AudioInterface.svelte index a350f1a8..57371b3a 100644 --- a/ui-svelte/src/components/playground/AudioInterface.svelte +++ b/ui-svelte/src/components/playground/AudioInterface.svelte @@ -16,7 +16,7 @@ let fileInput = $state(null); let copied = $state(false); - const ACCEPTED_FORMATS = ['.mp3', '.wav']; + const ACCEPTED_FORMATS = ['.mp3', '.wav', '.ogg']; const MAX_FILE_SIZE = 25 * 1024 * 1024; // 25MB let hasModels = $derived($models.some((m) => !m.unlisted)); @@ -31,7 +31,7 @@ const ext = '.' + file.name.split('.').pop()?.toLowerCase(); if (!ACCEPTED_FORMATS.includes(ext)) { - return { valid: false, error: 'Invalid file type. Accepted: MP3, WAV' }; + return { valid: false, error: 'Invalid file type. Accepted: MP3, WAV, OGG' }; } if (file.size > MAX_FILE_SIZE) { @@ -208,7 +208,7 @@

Drag and drop an audio file here

or use the Browse button below

-

Accepted formats: MP3, WAV (max 25MB)

+

Accepted formats: MP3, WAV, OGG (max 25MB)

{/if} @@ -218,7 +218,7 @@