diff --git a/Audio-Transcription/workers/Mp3Worker.js b/Audio-Transcription/workers/Mp3Worker.js index 48d29d5..56814b2 100644 --- a/Audio-Transcription/workers/Mp3Worker.js +++ b/Audio-Transcription/workers/Mp3Worker.js @@ -36,7 +36,7 @@ function start(bufferSize) { socket.send("handshake"); }; socket.onmessage = (event) => { - console.log(event.data); + self.postMessage({ command: "transcription", text: event.data}); }; if (options.encodeAfterRecord)