5
我使用freeTTS庫來轉換文本到語音。我可以使用這個庫的計劃我的代碼,我可以用下面的代碼播放語音特定文本:檢測java的freeTTS結束語
Voice voice = VoiceManager.getInstance().getVoice("kevin16");
if (voice != null) {
voice.allocate();
}
voice.speak("Hello world");
是否有使用,我可以得到一個回調的方式,當TTS LIB已經完成了發言處理?