Fixed delayed loading error
This commit is contained in:
parent
836847a9f1
commit
6b80b8a098
1 changed files with 2 additions and 0 deletions
|
@ -202,6 +202,8 @@ class VoiceRecorder {
|
|||
console.log("Start recording!");
|
||||
|
||||
this.mediaStream = stream;
|
||||
if(!this.audioContext) return;
|
||||
|
||||
this.microphoneStream = this.audioContext.createMediaStreamSource(stream);
|
||||
this.microphoneStream.connect(this.processor);
|
||||
this.vadHandler.initialiseNewStream(oldStream, this.microphoneStream);
|
||||
|
|
Loading…
Add table
Reference in a new issue