send float frames
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user