diff --git a/vetti-common/src/main/java/com/vetti/common/ai/whisper/WhisperClient.java b/vetti-common/src/main/java/com/vetti/common/ai/whisper/WhisperClient.java index 4cfafd7..4d993fd 100644 --- a/vetti-common/src/main/java/com/vetti/common/ai/whisper/WhisperClient.java +++ b/vetti-common/src/main/java/com/vetti/common/ai/whisper/WhisperClient.java @@ -46,7 +46,7 @@ public class WhisperClient { .setType(MultipartBody.FORM) .addFormDataPart("model", MODEL) .addFormDataPart("file", audioFile.getName(), - RequestBody.create(audioFile, MediaType.parse("audio/*"))); + RequestBody.create(audioFile, MediaType.parse("audio/webm"))); // 添加可选参数 if (options != null) { for (Map.Entry entry : options.entrySet()) { @@ -69,8 +69,6 @@ public class WhisperClient { ", 详情: " + responseBody ); } - // 解析JSON响应 - JSONObject json = new JSONObject(responseBody); return responseBody; } }