speech-and-text-unity-ios-android icon indicating copy to clipboard operation
speech-and-text-unity-ios-android copied to clipboard

Error SpeechRecognizer bind to recognition service failed |Android 11

Open jayesh8585 opened this issue 2 years ago • 11 comments

Hello All, In android 11 we got this issue, after searching a lot we found that by adding below lines it should work :

but our app was crashed & we got a new error please check the attached screenshot Can anyone help us to fix it?

image_2022_05_05T13_21_56_935Z (1)

jayesh8585 avatar May 05 '22 13:05 jayesh8585

Hello,

We had the same problem and solved it by unistalling google voice services updates from the device.

Hope this fixes all your problems.

穏やかな巨人

1dmaol avatar May 11 '22 10:05 1dmaol

Facing same issue. Nothing seems to work.

JahangirJadi avatar Aug 28 '22 09:08 JahangirJadi

Same issue here. Any idea on how to solve this issue?

weversongomes avatar Aug 28 '22 19:08 weversongomes

Same issue here. Any idea on how to solve this issue?

Here's the solution. It worked for me too.

https://github.com/j1mmyto9/speech-and-text-unity-ios-android/issues/58#issuecomment-900230642

JahangirJadi avatar Aug 28 '22 22:08 JahangirJadi

Thanks for the answer. I added

<queries>
    <package android:name="com.google.android.googlequicksearchbox"/>
</queries>

to the Assets/Plugins/Android/AndroidManifest.xml file, which now looks like this

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android">

  <uses-permission android:name="android.permission.RECORD_AUDIO" />
  <uses-permission android:name="android.permission.INTERNET" />
  <queries>
    <package android:name="com.google.android.googlequicksearchbox"/>
  </queries>
  <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>

But unfortunately I still have the issue. I'm using Unity 2021.3. Which Unity version are you using? Does my AndroidManifest looks like yours?

weversongomes avatar Aug 29 '22 05:08 weversongomes

Is your app running with android popup checkbox set to true in speechtotext?

JahangirJadi avatar Aug 29 '22 05:08 JahangirJadi

Yes, the app works if I set Is Show Popup Android to true.

weversongomes avatar Aug 29 '22 06:08 weversongomes

What is your Android version? Is it above 11? Because I have tested it on 11 only

JahangirJadi avatar Aug 29 '22 07:08 JahangirJadi

I am using Android 11 too.

weversongomes avatar Aug 29 '22 08:08 weversongomes

I am also having this issue with Unity 2021

ZAKosma avatar May 28 '23 21:05 ZAKosma

Please check https://github.com/j1mmyto9/speech-and-text-unity-ios-android/issues/58#issuecomment-1657227651 for temporary fix

prakyath-07 avatar Jul 30 '23 17:07 prakyath-07