Android自带语音播报
16lz
2021-01-23
import android.speech.tts.TextToSpeech;tts = new TextToSpeech(this, new TextToSpeech.OnInitListener() { @Override public void onInit(int status) { //初始化成功的话,设置语音 if (status == TextToSpeech.SUCCESS) { tts.setLanguage(Locale.CHINESE); tts.speak("左偏120度 右偏86度", TextToSpeech.QUEUE_FLUSH, null); } }});
更多相关文章
- android集成语音功能
- android语音识别方法一:使用intent调用语音识别程序
- android上实现语音识别,基于google的语音识的简单例子.
- android语音识别方法示例代码
- 【转】Android 轻松实现语音识别
- Android传感器、语音识别、定位系统、Google Map API、快捷方式