Skip to content

Commit

Permalink
start() method will also disable pause mode. pause and abort document…
Browse files Browse the repository at this point in the history
…ation improved slightly
  • Loading branch information
TalAter committed Mar 12, 2015
1 parent f4bfb06 commit 93c3e22
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 16 deletions.
6 changes: 3 additions & 3 deletions annyang.js
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,7 @@
* @method start
*/
start: function(options) {
pauseListening = false;
initIfNeeded();
options = options || {};
if (options.autoRestart !== undefined) {
Expand All @@ -253,7 +254,7 @@
},

/**
* Stop listening.
* Stop listening, and turn off mic.
*
* Alternatively, to only temporarily pause annyang responding to commands without stopping the SpeechRecognition engine or closing the mic, use pause() instead.
* @see [pause()](#pause)
Expand All @@ -268,7 +269,7 @@
},

/**
* Pause listening. annyang will stop responding to commands (until the resume method is called), without turning off the browser's SpeechRecognition engine
* Pause listening. annyang will stop responding to commands (until the resume or start methods are called), without turning off the browser's SpeechRecognition engine or the mic.
*
* Alternatively, to stop the SpeechRecognition engine and close the mic, use abort() instead.
* @see [abort()](#abort)
Expand All @@ -286,7 +287,6 @@
* @method resume
*/
resume: function() {
pauseListening = false;
root.annyang.start();
},

Expand Down
2 changes: 1 addition & 1 deletion annyang.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion demo/css/main.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 93c3e22

Please sign in to comment.