fix: null language firefox

This commit is contained in:
makaveli10
2023-07-28 14:13:31 +05:30
parent ee696cceef
commit 7a1d6a5b77
2 changed files with 6 additions and 1 deletions
+1
View File
@@ -41,6 +41,7 @@ function resampleTo16kHZ(audioData, origSampleRate = 44100) {
function startRecording(data) {
socket = new WebSocket(`ws://${data.host}:${data.port}/`);
language = data.language;
socket.onopen = function(e) {
socket.send(
JSON.stringify({