khanhuitse05 / speech-and-text-unity-ios-android

Speed to text in Unity iOS use Native Speech Recognition
MIT License
286 stars 124 forks source link

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

Open jayesh8585 opened 2 years ago

jayesh8585 commented 2 years ago

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 commented 2 years ago

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 commented 1 year ago

Facing same issue. Nothing seems to work.

weversongomes commented 1 year ago

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

JahangirJadi commented 1 year ago

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

weversongomes commented 1 year ago

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 commented 1 year ago

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

weversongomes commented 1 year ago

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

JahangirJadi commented 1 year ago

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

weversongomes commented 1 year ago

I am using Android 11 too.

ZAKosma commented 1 year ago

I am also having this issue with Unity 2021

prakyath-07 commented 11 months ago

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