LiJun
2018-10-30 f86d079dcafc190e634f248d1dcc7007b7cf1028
gx_tieta/WebRoot/js/VoiceUtil.js
@@ -28,7 +28,7 @@
   var to_speak = new SpeechSynthesisUtterance(txt);
   to_speak.voice = this.voice;   // 设定中文播报
   to_speak.rate = this.rate;
   console.info(to_speak);
   //console.info(to_speak);
   this.speak.speak(to_speak);
   
   var starttime = new Date();
@@ -37,7 +37,7 @@
      if(callback && typeof callback == 'function'){
         var endtime = new Date();
         var timelong = (endtime.getTime()-starttime.getTime())/1000;
         console.info(parseInt(_timeInterval)+"==="+parseInt(timelong));
         //console.info(parseInt(_timeInterval)+"==="+parseInt(timelong));
         if(timelong > this.timeInterval){            
            callback();
         }else{