no error, only "sr.isRecognitionAvailable" is always false.
B4X:
If sr.isRecognitionAvailable Then
tbtnMicrophon.Enabled = True
sr.createSpeechRecognizer
'Log("OK")
Else
pnlMicrophon.Visible = False
'Log("Not OK")
End If
As the title implies, SpeechRecognizer.isRecognitionAvailable() returns false in Android 11 and I am not sure why that is as the device (Pixel 3 XL) is equipped to recognize speech. The documentation
here's a link to google documentation: https://developer.android.com/about/versions/11/behavior-changes-11
it offers a similar solution to the one mentioned above. you may want to try both.
btw, i have a pixel3a running android 11. my tts app built for sdk30 speaks fine without any change to manifest...