Send data from the mp3 worker.
This commit is contained in:
@@ -36,7 +36,7 @@ function start(bufferSize) {
|
|||||||
socket.send("handshake");
|
socket.send("handshake");
|
||||||
};
|
};
|
||||||
socket.onmessage = (event) => {
|
socket.onmessage = (event) => {
|
||||||
console.log(event.data);
|
self.postMessage({ command: "transcription", text: event.data});
|
||||||
};
|
};
|
||||||
|
|
||||||
if (options.encodeAfterRecord)
|
if (options.encodeAfterRecord)
|
||||||
|
|||||||
Reference in New Issue
Block a user