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

Unrecognized voice running on Android 11 #122

Open
xlz05460 opened this issue Nov 19, 2021 · 8 comments
Open

Unrecognized voice running on Android 11 #122

xlz05460 opened this issue Nov 19, 2021 · 8 comments

Comments

@xlz05460
Copy link

I got the latest version.

The STT I use is
implementation("com.just-ai.aimybox:google-cloud-speechkit:$aimyboxVersion")

When I install the app into Android 9, I can recognize voice and work normally.

However, when I installed the app on Android 11, I couldn't recognize the voice.
From the perspective of logcat, it was this error:
com.google.api.gax.rpc.UnauthenticatedException: io.grpc.StatusRuntimeException: UNAUTHENTICATED: Request had invalid authentication credentials. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project.

Why did this happen?
There is no problem on Android 9.

@cdhiraj40
Copy link

hey, @xlz05460 were you able to resolve it?
@morfeusys could you please clarify on the android version as I am also unable to use it. The button keeps showing that I am speaking but It never recognizes my voice :/

@morfeusys
Copy link
Collaborator

@cdhiraj40 looks like your device doesn't support Google speech recognition service. Please try another speech-to-text module

@cdhiraj40
Copy link

@cdhiraj40 looks like your device doesn't support Google speech recognition service. Please try another speech-to-text module

@morfeusys I have tried the aimybox assistant demo, but the result is same only.

@cdhiraj40
Copy link

@morfeusys I have checked in the other phones having android 11 and it didn't work for them either :/

@Jdbarad
Copy link

Jdbarad commented Apr 15, 2022

I have solutions for that

@cdhiraj40
Copy link

hey, @Jdbarad that's pretty cool!
But I have already solved this issue! Thanks :)

@Jdbarad
Copy link

Jdbarad commented Apr 15, 2022

Okay but still this problem faces

@JennyCGT
Copy link

JennyCGT commented Dec 1, 2022

I have the same problem, but for me the solution was add [] in AndroidManifest.xml for android.speech.RecognitionService.

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

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

5 participants