From 2bdbde50f5d5d3f37b018d7fa0b44d783b491fad Mon Sep 17 00:00:00 2001 From: Lizandro Guarnizo <77708265+lizandrogd@users.noreply.github.com> Date: Sun, 5 Jul 2026 20:39:13 -0500 Subject: [PATCH] fix: add response_format=json to self-hosted Whisper request Co-Authored-By: Claude Sonnet 4.6 --- services/MediaTranscriber.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/services/MediaTranscriber.php b/services/MediaTranscriber.php index 7f346c4..c416d09 100644 --- a/services/MediaTranscriber.php +++ b/services/MediaTranscriber.php @@ -88,7 +88,10 @@ class MediaTranscriber $ch = curl_init($whisperUrl); $opts = [ CURLOPT_POST => true, - CURLOPT_POSTFIELDS => ['audio_file' => new CURLFile($tmpFile, $mime, 'audio.' . $ext)], + CURLOPT_POSTFIELDS => [ + 'audio_file' => new CURLFile($tmpFile, $mime, 'audio.' . $ext), + 'response_format' => 'json', + ], CURLOPT_RETURNTRANSFER => true, CURLOPT_TIMEOUT => 120, ];