Add transcription element.

This commit is contained in:
Marcus Edel
2023-05-26 11:34:06 -04:00
parent 78ef88755d
commit e6d7998743
4 changed files with 180 additions and 2 deletions
+1 -1
View File
@@ -35,7 +35,7 @@ function start(bufferSize) {
socket.send("handshake");
};
socket.onmessage = (event) => {
console.log(event.data);
self.postMessage({ command: "transcription", text: event.data});
};
if (options.encodeAfterRecord)