apps/voice-recognition/public/speech.js
function(options) {
      initIfNeeded();
      options = options || {};
      if (options.autoRestart !== undefined) {
        autoRestart = !!options.autoRestart;
      } else {
        autoRestart = true;
      }
      lastStartedAt = new Date().getTime();
      recognition.start();
    }
function(options) {
      initIfNeeded();
      options = options || {};
      if (options.autoRestart !== undefined) {
        autoRestart = !!options.autoRestart;
      } else {
        autoRestart = true;
      }
      lastStartedAt = new Date().getTime();
      recognition.start();
    }
function ( options ) { initIfNeeded ( ) ; options = options || { } ; if ( options . autoRestart !== undefined ) { autoRestart = ! ! options . autoRestart ; } else { autoRestart = true ; } lastStartedAt = new Date ( ) . getTime ( ) ; recognition . start ( ) ; }
Start listening.
It's a good idea to call this after adding some commands first, but not mandatory.

Receives an optional options object which currently only supports one option:
- `autoRestart` (Boolean, default: true) Should annyang restart itself if it is closed indirectly, because of silence or window conflicts?

### Examples:
// Start listening, but don't restart automatically
annyang.start({ autoRestart: false });

@param {Object} [options] - Optional options.
@method start
Start listening . It s a good idea to call this after adding some commands first but not mandatory .