如果出现speak failed: not bound to TTS engine并且是Android 11
在AndroidManifest.xml中加入
<queries> <intent> <action android:name="android.intent.action.TTS_SERVICE" /> </intent></queries>
参考文章:
Android 11使用TextToSpeech实现文字转换语音&&相关bug:speak failed: not bound to TTS engine_texttospeech speak deprecated-CSDN博客
京公网安备 11010502049817号