send float frames

This commit is contained in:
makaveli10
2023-08-09 01:35:02 +05:30
parent 5a98f28772
commit defc1687b7
2 changed files with 2 additions and 16 deletions
+1 -8
View File
@@ -165,14 +165,7 @@ async function startRecord(option) {
audioDataCache.push(inputData);
// feed inputs and run
const base64AudioData = btoa(String.fromCharCode.apply(null, new Uint8Array(audioData16kHz.buffer)));
socket.send(
JSON.stringify({
"audio": base64AudioData
})
);
socket.send(audioData16kHz);
};
// Prevent page mute
+1 -8
View File
@@ -132,14 +132,7 @@ function startRecording(data) {
audioDataCache.push(inputData);
// feed inputs and run
const base64AudioData = btoa(String.fromCharCode.apply(null, new Uint8Array(audioData16kHz.buffer)));
socket.send(
JSON.stringify({
"audio": base64AudioData
})
);
socket.send(audioData16kHz);
};
// Prevent page mute