voice icon indicating copy to clipboard operation
voice copied to clipboard

'Bind to recognition service failed' on android device

Open DanielBoening opened this issue 6 years ago • 8 comments

Hello,

we have this library successful in production, however we got problems with specific Huawei devices.

Generally voice recognition seems to work and also does this library say they are available:

await Voice.getSpeechRecognitionServices() => [ 'com.google.android.googlequicksearchbox' ] await Voice.isAvailable() => true

on Voice.start(...) I get the error from logcat: E/SpeechRecognizer: bind to recognition service failed

Any tips on this topic?

react-native: 61.2 react-native-voice: 1.1.0

DanielBoening avatar Mar 04 '20 13:03 DanielBoening

I have the same issue on Redmi device.

Unable to start service Intent { act=android.speech.RecognitionService cmp=com.miui.voiceassist/com.xiaomi.mibrain.speech.asr.AsrService } U=0: not found on ActivityManager tag. I saw this line in Flipper before SpeechRecognizer: bind to recognition service failed

The device is using: Android Version 9 MIUI 11.0.3

Have you solved the issue?

Aung-Myint-Thein avatar Jun 27 '20 15:06 Aung-Myint-Thein

For android fix, try adding this in your manifest file <queries> <package android:name="com.google.android.googlequicksearchbox"/> </queries>

Arpit0492 avatar Apr 26 '21 12:04 Arpit0492

This should be on the official documentation, i wasted a lot of my time until i randomly found this. Someone should create a pull request.

KyrXtz avatar Feb 04 '22 15:02 KyrXtz

For android fix, try adding this in your manifest file <queries> <package android:name="com.google.android.googlequicksearchbox"/> </queries>

I'm agree. This must be in the official documentation. Thank you for this solution 👍🏻

devpgcs avatar May 10 '22 17:05 devpgcs

For android fix, try adding this in your manifest file <queries> <package android:name="com.google.android.googlequicksearchbox"/> </queries>

Still facing error when run in android 11.

Linh-Vo avatar Dec 20 '22 08:12 Linh-Vo

For android fix, try adding this in your manifest.xml file

Muhammadsheraz492 avatar Jul 22 '23 10:07 Muhammadsheraz492

For android fix, try adding this in your manifest file

Muhammadsheraz492 avatar Jul 22 '23 10:07 Muhammadsheraz492

I have the same problem... could you please provide me with the working code to see if I can make it work in my code? Because I've tried everything and it's not working

Rosti-Marcos avatar Feb 06 '24 14:02 Rosti-Marcos