【发布时间】:2015-08-22 18:43:06
【问题描述】:
我尝试在我的应用中使用 TextToSpeech,
String text = editText.getText().toString();
tts.speak(text, TextToSpeech.QUEUE_FLUSH, null);
但是函数 speak(String text, int queueMode, HashMap params) 在 API 级别 21 中已被弃用。相反,建议使用 speak(CharSequence text, int queueMode, Bundle params, String utteranceId)。 但我不知道如何设置它。谢谢
【问题讨论】: