vue-speech
vue-speech copied to clipboard
It can't be disable :(
In dist > vue-speech.js >
recognition.addEventListener('end', () => {
if (this.runtimeTranscription !== '') {
this.transcription.push(this.runtimeTranscription);
this.$emit('onTranscriptionEnd', {
transcription: this.transcription,
lastSentence: this.runtimeTranscription
});
}
this.runtimeTranscription = '';
recognition.start(); //line tu change
});
recognition.start();
}
change for
recognition.addEventListener('end', () => {
if (this.runtimeTranscription !== '') {
this.transcription.push(this.runtimeTranscription);
this.$emit('onTranscriptionEnd', {
transcription: this.transcription,
lastSentence: this.runtimeTranscription
});
}
this.runtimeTranscription = '';
recognition.stop(); //line changed
});
recognition.start();
}