更新语音传输格式
This commit is contained in:
@@ -46,7 +46,7 @@ public class WhisperClient {
|
|||||||
.setType(MultipartBody.FORM)
|
.setType(MultipartBody.FORM)
|
||||||
.addFormDataPart("model", MODEL)
|
.addFormDataPart("model", MODEL)
|
||||||
.addFormDataPart("file", audioFile.getName(),
|
.addFormDataPart("file", audioFile.getName(),
|
||||||
RequestBody.create(audioFile, MediaType.parse("audio/webm")));
|
RequestBody.create(audioFile, MediaType.parse("audio/opus")));
|
||||||
// 添加可选参数
|
// 添加可选参数
|
||||||
if (options != null) {
|
if (options != null) {
|
||||||
for (Map.Entry<String, String> entry : options.entrySet()) {
|
for (Map.Entry<String, String> entry : options.entrySet()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user