vue-speech icon indicating copy to clipboard operation
vue-speech copied to clipboard

It can't be disable :(

Open Ronald-Prato opened this issue 6 years ago • 1 comments

Ronald-Prato avatar Jan 28 '19 03:01 Ronald-Prato

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

Ronald-Prato avatar Jan 28 '19 04:01 Ronald-Prato