app.js
function(sentences, options) {
    var voice = options.voice, callback = options.callback,
      iswrite = options.writetext;
    for (var i=0; i<sentences.length; i++) {
      speechList.push(sentences[i]);
    };
    try{
      tts(voice, iswrite, callback);
      return true;
    } catch(e) {
      throw new Error('error while speaking');
    }
  }
function(sentences, options) {
    var voice = options.voice, callback = options.callback,
      iswrite = options.writetext;
    for (var i=0; i<sentences.length; i++) {
      speechList.push(sentences[i]);
    };
    try{
      tts(voice, iswrite, callback);
      return true;
    } catch(e) {
      throw new Error('error while speaking');
    }
  }
function ( sentences , options ) { var voice = options . voice , callback = options . callback , iswrite = options . writetext ; for ( var i = 0 ; i < sentences . length ; i ++ ) { speechList . push ( sentences [ i ] ) ; } ; try { tts ( voice , iswrite , callback ) ; return true ; } catch ( e ) { throw new Error ( 'error while speaking' ) ; } }
Make your computer speak better with multiple sentences

@param  {Array} | {String} Array list of sentences or filepath
@param  {Object<voice, writetext, callback>} options
Make your computer speak better with multiple sentences