diff --git a/SpeechKit.js b/SpeechKit.js index ab24be4..cf84273 100644 --- a/SpeechKit.js +++ b/SpeechKit.js @@ -102,6 +102,10 @@ export default class SpeechKit { this.synth.speak(this.utterance) } + shutup () { + this.synth.cancel() + } + /** * Get current SpeechRecognition resultsList. * @returns {SpeechRecognitionResultList} - List of Speech Recognition results diff --git a/package.json b/package.json index 1880d55..32ff50b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@mastashake08/speech-kit", - "version": "1.9.1", + "version": "1.9.2", "description": "Package for simplifying the Speech Recognition and Speech Utterence process.", "main": "SpeechKit.js", "scripts": {