微波EDA网,见证研发工程师的成长!
首页 > 硬件设计 > 硬件工程师文库 > 安卓TTS语音合成经验分享

安卓TTS语音合成经验分享

时间:07-17 来源:互联网 点击:

icePlayNum() + 1);

  voiceQueueList.remove(pos);

  if (currentVoiceEntity.getVoicePlayNum() 》 Integer.parseInt(sp.getString("voice_play_timers", "0"))) {currentVoiceEntity.setIsVoicePlayed(true);

  new ExecVoiceStatusChangeBiz().execute(String.valueOf(getCurrentVoiceEntity().getKeyId()));}

  voiceQueueList.add(currentVoiceEntity);}loadVoiceTaskList();}});isPlaySound = false;}@Overridepublic void onSpeakBegin()

  throws RemoteException {isPlaySound = true;}@Overridepublic void onSpeakPaused()

  throws RemoteException {}@Overridepublic void onSpeakProgress(int progress)

  throws RemoteException {}@Overridepublic void onSpeakResumed()

  throws RemoteException {}};/** * 窗体销毁时释放语音服务资源 */

  @Overrideprotected void onDestroy() {super.onDestroy();mTts.stopSpeaking(mTtsListener);mTts.destory();}

  3、完成。截图纪念一下:

  

  

Copyright © 2017-2020 微波EDA网 版权所有

网站地图

Top