From 33b53614cb1dd7aa80540c5da63fa40497a9518f Mon Sep 17 00:00:00 2001 From: invin_huo Date: Sun, 12 Oct 2025 17:37:49 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AF=AD=E8=A8=80=E8=BE=93=E5=85=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Html/apps/static/js/chatbox.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Html/apps/static/js/chatbox.js b/Html/apps/static/js/chatbox.js index 1fc90ac..02c8452 100644 --- a/Html/apps/static/js/chatbox.js +++ b/Html/apps/static/js/chatbox.js @@ -296,7 +296,7 @@ function stopRecording() { merged_data.set(new Uint8Array(chunk), offset); offset += chunk.length; } - socket.emit('VoiceMessage', JSON.stringify({ data: merged_data, type: 'audio' })); + socket.emit('VoiceMessage', merged_data, { binary: true }); audio_chunks = []; } overlay.style.display = 'none';