Skip to content

Commit d02e5df

Browse files
authored
fix: setting content type of mp3 file in whisper transcribe (#264)
1 parent c3027af commit d02e5df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/gp/whisper.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ local whisper = function(callback, language)
205205
.. '" -H "Content-Type: multipart/form-data" '
206206
.. '-F model="whisper-1" -F language="'
207207
.. language
208-
.. '" -F file="@final.mp3" '
208+
.. '" -F file="@final.mp3;type=audio/mpeg" '
209209
.. '-F response_format="json"'
210210

211211
tasker.run(nil, "bash", { "-c", cmd }, function(code, signal, stdout, _)

0 commit comments

Comments
 (0)