From 6aed763e03f1f9d2584f07fc8dfaa84c77b671ba Mon Sep 17 00:00:00 2001 From: jopolka Date: Thu, 22 May 2025 23:02:15 +0200 Subject: [PATCH] setting content type of mp3 file in whisper transcribe --- lua/gp/whisper.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/gp/whisper.lua b/lua/gp/whisper.lua index 329d8997..942fde42 100644 --- a/lua/gp/whisper.lua +++ b/lua/gp/whisper.lua @@ -205,7 +205,7 @@ local whisper = function(callback, language) .. '" -H "Content-Type: multipart/form-data" ' .. '-F model="whisper-1" -F language="' .. language - .. '" -F file="@final.mp3" ' + .. '" -F file="@final.mp3;type=audio/mpeg" ' .. '-F response_format="json"' tasker.run(nil, "bash", { "-c", cmd }, function(code, signal, stdout, _)