More Related Content
More from Chia Wei Tsai (14)
KSDG - iHelp 心路歷程
- 10. • 報案專線 | 臺灣警政署提供
• 新北市報案App| 工研院研發
• 簡訊報案App | 新竹市政府
- 14. 使用者輸入求
救訊息
求救訊息透過
TTS 轉為音檔
撥『110』電
話並將音檔播
出
對方聲音透過
SR 轉換文字
- 16. 檢查語言包
• Intent checkTTS = new Intent();
• checkIntent.setAction(TextToSpeech.Engine);
• startActivityForResult(checkTTS, STATUS);
- 19. TextToSpeech
• mTTS = new TextToSpeech(this, this);
• mTTS.setLanguage(Locale.US);
• mTTS.speak(“test", TextToSpeech.QUEUE,
null);
- 20. synthesizeToFile
• myHash = new HashMap<String, String>();
• String wakeUpText = ”test";
• String destFileName = "/sdcard/test.wav";
• myHash.put(TextToSpeech.Engine.KEY_PARAM_UTT
ERANCE_ID, wakeUpText);
• mTTS.synthesizeToFile(wakuUpText, myHash ,
destFileName);