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';