Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

It can't be disable :( #7

Open
Ronald-Prato opened this issue Jan 28, 2019 · 1 comment
Open

It can't be disable :( #7

Ronald-Prato opened this issue Jan 28, 2019 · 1 comment

Comments

@Ronald-Prato
Copy link

No description provided.

@Ronald-Prato
Copy link
Author

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();
    }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant