Android 11使用TextToSpeech实现文字转换语音报错speak failed: not bound to TTS engine

如果出现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博客

猜你喜欢

转载自blog.csdn.net/zhizhuodewo6/article/details/133309988
今日推荐