|
@@ -369,8 +369,8 @@ const handleTouchEnd = () => {
|
|
content: "",
|
|
content: "",
|
|
contentType: MSG_TYPE.AUDIO,
|
|
contentType: MSG_TYPE.AUDIO,
|
|
messageType: MESSAGE_TYPE_USER,
|
|
messageType: MESSAGE_TYPE_USER,
|
|
- fileSuffix: "webm",
|
|
|
|
- file: audioData,
|
|
|
|
|
|
+ fileSuffix: "wav", // 使用webm后缀更准确
|
|
|
|
+ file: audioData, // 将Uint8Array转为普通数组
|
|
});
|
|
});
|
|
console.log("语音已发送");
|
|
console.log("语音已发送");
|
|
};
|
|
};
|