Voice: Voice.isAvailable() returns false on Android 11

Created on 19 Mar 2021  路  2Comments  路  Source: react-native-voice/voice

Hey,

I need some help. I have a solution using voice recognition on Android, but in Android 11 the function Voice.isAvailable() always returns FALSE.

No exceptions on Android Logcat.

Does anyone know if there is a way to make it work on Android 11?

Thanks

Most helpful comment

https://developer.android.com/about/versions/11/privacy/package-visibility

Due to Android 11 change, you have to add below code in your manifest xml file.

<manifest...>
    <queries>
        <intent>
            <action android:name="android.speech.RecognitionService" />
        </intent>
    </queries>
   ...

All 2 comments

https://developer.android.com/about/versions/11/privacy/package-visibility

Due to Android 11 change, you have to add below code in your manifest xml file.

<manifest...>
    <queries>
        <intent>
            <action android:name="android.speech.RecognitionService" />
        </intent>
    </queries>
   ...

Thanks, it works!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

dohvis picture dohvis  路  7Comments

AgNm picture AgNm  路  4Comments

aamping picture aamping  路  6Comments

alvaro1728 picture alvaro1728  路  3Comments

Fistynuts picture Fistynuts  路  7Comments