1
我正在使用Android的TextToSpeech引擎。初始化代码Android TextToSpeech初始化 - 将默认TTS引擎设置为“android.speech.tts”
TextToSpeech mTTS;
mTTS=new TextToSpeech(this, this, "android.speech.tts");
mTTS.setEngineByPackageName("android.speech.tts");
Intent checkTTSIntent = new Intent();
checkTTSIntent.setAction(TextToSpeech.Engine.ACTION_CHECK_TTS_DATA);
startActivityForResult(checkTTSIntent, MY_DATA_CHECK_CODE);
但是这个代码我的手机选择器对话框选择的B/W谷歌的文字转语音引擎或三星的文字转语音引擎。现在我想删除这个
选配盒,并直接加载谷歌的TTS引擎,而无需用户交互。请帮助我被困住了:(