I can't use TTS on Android 11

Hi,
I’m developing a game with a Text To Speech feature. It works fine on the other version but doesn’t work on Android 11.

I’m using Unity 2020.3.11f and already add to the manifest.

<queries>
    <intent>
        <action android:name="android.intent.action.TTS_SERVICE" />
    </intent>
</queries>

Please helps me to solve this problem.
Thanks

I have same issue on Unity 2018.4.26 and when I added on Plugin/Android/AndridManifest.xml, build will fail.

I Had the same problem and tried to solve it for a view month now, every now and then. Its not essential for my app but a nice feature to have. So, the solution for this problem is the same as for the notification problem. Notifications for Android did not work as well, but i fixed it within a day.
image
If things work fine for you on development build and the features you’d like to use would definitely work with ARM64, then use a custom Proguard, activate it as shown in the image above on Project Settings/Player/Publishing Settings.

Then move to the Proguard file (image below), open it and type in -keep class com.starseed.** { *; }.
You might also mention this package in the manifest. Try this with all features that should work, but somehow don’t.

The AndroidManifest schould look something like this:

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.starseed.speechtotext">
	<queries>
		<intent>
			<action android:name="android.intent.action.TTS_SERVICE" />
		</intent>
	</queries>
  <uses-permission android:name="android.permission.RECORD_AUDIO" />
  <uses-permission android:name="android.permission.INTERNET" />
	<uses-permission android:name="android.permission.Camera" />
	<uses-permission android:name="android.permission.Microphone" />
  <application>
    <activity 
      android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize"
      android:name="com.starseed.speechtotext.MainActivity">
      <intent-filter>
        <action android:name="android.intent.action.MAIN" />
        <category android:name="android.intent.category.LAUNCHER" />
      </intent-filter>
    </activity>   
  </application>
</manifest>