Skip to content
This repository has been archived by the owner on May 23, 2023. It is now read-only.

speech recognition service is not available on system on Android 11 Beta #115

Open
rksoni31895 opened this issue Aug 23, 2020 · 7 comments

Comments

@rksoni31895
Copy link

rksoni31895 commented Aug 23, 2020

I am Getting speech recognition service is not available on system on latest android 11 beta.
I am using:
Ionic version 4.
Ionic webview version: 4.2.0.
Cordova-android: 9.0.0

My Target sdk version: 30

In older version of android speech recognition is working as expected.

@rksoni31895 rksoni31895 changed the title speech recognition service is not available on system speech recognition service is not available on system on Android 11 Beta Aug 23, 2020
@russaa
Copy link

russaa commented Sep 21, 2020

you should check, if the "Google App" play.google.com/com.google.android.googlequicksearchbox is installed:
on most Android systems I've come across, the default/system speech recognition engine is the one that is provided by that app (and since this cordova plugin relies on the system's engine, at least one must be installed)

@joshglazer
Copy link

I have this app installed on my phone but am still getting this error. Is there anything else that I could try?

@sdetweil
Copy link

nor on Android 11 production (Samsung 8+ S20 FE 5G)

@dteso
Copy link

dteso commented Jun 27, 2021

In Android 11 the connection to the voice recognition service must be done manually (https://developer.android.com/training/basics/intents/package-visibility-use-cases). Adding next code in AndroidManifest.xml worked for me:

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

@secretmoo35
Copy link

It Work for me.

In Android 11 the connection to the voice recognition service must be done manually (https://developer.android.com/training/basics/intents/package-visibility-use-cases). Adding next code in AndroidManifest.xml worked for me:

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

@OtherCarlos
Copy link

OtherCarlos commented Dec 17, 2021

@dteso That idea sounds amazing, how can I add this to my AndroidManifest.xml, if 'cordova platform add' build by himself the android folder?

@secretmoo35 you did it?

@secretmoo35
Copy link

secretmoo35 commented Dec 18, 2021

@OtherCarlos

AndroidManifest

Add this code in file "config.xml"

<platform name="android">
...
...
<config-file parent="/manifest" target="AndroidManifest.xml" xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools">
            <queries>
                <intent>
                    <action android:name="android.speech.RecognitionService" />
                </intent>
            </queries>
</config-file>
</platform>

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

No branches or pull requests

7 participants