语言输入
This commit is contained in:
@@ -296,7 +296,7 @@ function stopRecording() {
|
|||||||
merged_data.set(new Uint8Array(chunk), offset);
|
merged_data.set(new Uint8Array(chunk), offset);
|
||||||
offset += chunk.length;
|
offset += chunk.length;
|
||||||
}
|
}
|
||||||
socket.emit('VoiceMessage', JSON.stringify({ data: merged_data, type: 'audio' }));
|
socket.emit('VoiceMessage', merged_data, { binary: true });
|
||||||
audio_chunks = [];
|
audio_chunks = [];
|
||||||
}
|
}
|
||||||
overlay.style.display = 'none';
|
overlay.style.display = 'none';
|
||||||
|
|||||||
Reference in New Issue
Block a user