Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error SpeechRecognizer bind to recognition service failed |Android 11 #74

Open
jayesh8585 opened this issue May 5, 2022 · 11 comments
Open

Comments

@jayesh8585
Copy link

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)

@1dmaol
Copy link

1dmaol commented May 11, 2022

Hello,

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

Hope this fixes all your problems.

穏やかな巨人

@JahangirJadi
Copy link

Facing same issue. Nothing seems to work.

@weversongomes
Copy link

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

@JahangirJadi
Copy link

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

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

#58 (comment)

@weversongomes
Copy link

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?

@JahangirJadi
Copy link

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

@weversongomes
Copy link

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

@JahangirJadi
Copy link

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

@weversongomes
Copy link

I am using Android 11 too.

@ZAKosma
Copy link

ZAKosma commented May 28, 2023

I am also having this issue with Unity 2021

@prakyath-07
Copy link

Please check
#58 (comment) for temporary fix

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants