Questions tagged [android-speech-api]

The API for Android platform that provides support for both speech recognition and speech synthesis.

The API for Android platform that provides support for both speech recognition and speech synthesis.

62 questions
29
votes
1 answer

SpeechRecognizer not available when targeting Android 11

While testing an application after increasing the targetLevel to 30, I found that the SpeechRecognizer is not available any more, i.e. SpeechRecognizer.isRecognitionAvailable() always return false. If I set the targetLevel back to 29, without…
bwt
  • 17,292
  • 1
  • 42
  • 60
14
votes
2 answers

Using Android Speech Recognition APIs from Google Glass

I'm working to adapt an existing Android application to run on Google Glass, as a proof of concept. I would like to use voice input in my application to replace some features that currently require touch input. I can deploy my APK to Google Glass…
Malcolm Smith
  • 143
  • 1
  • 5
13
votes
4 answers

Muting the Google voice recognition beep sound

I have a test app that uses Google voice in a continuous manner and it plays the beep sound every time Google recognition service is called. I am trying to get rid of the beep sound. I have read threads of muting the music stream but that would not…
11
votes
3 answers

Google speech Api v1 not working?

I have developed an app using the Google speech Api v1 https://www.google.com/speech-api/v1/recognize?xjerr=1&client=chromium&lang="+language_code; and this link was used to get the response. It was working fine but just from today it's not…
6
votes
1 answer

SpeechRecognizer.isRecognitionAvailable() always false in Android 11

As the title implies, SpeechRecognizer.isRecognitionAvailable() returns false in Android 11 and I am not sure why that is as the device (Pixel 3 XL) is equipped to recognize speech. The documentation doesn't indicate that it changed in API v30. The…
Tom
  • 717
  • 2
  • 6
  • 23
5
votes
0 answers

Query supported languages with Google Speech Services doesn't work on Android 13

I query the supported languages for the speech service with the RecognizerIntent.ACTION_GET_LANGUAGE_DETAILS action: val intent = Intent(RecognizerIntent.ACTION_GET_LANGUAGE_DETAILS) packageManager.queryBroadcastReceivers(intent, 0).map {…
dipdipdip
  • 2,326
  • 1
  • 21
  • 31
5
votes
2 answers

API limit for Google Android Speech recognition

Android has a speech recognition API well documented over here. Now, if I plan to integrate this in my application, I want to know what is limit to the API calls/requests that I can make to the Google server using Speech API. Is this commercially…
Parth Doshi
  • 4,200
  • 15
  • 79
  • 129
4
votes
0 answers

SpeechRecognizer Error 4 ERROR_SERVER - Server sends error status

What can Google mean - "server error"? That is not a particularly helpful error. Has anyone seen this error before? I'm posting the code here. The code usually works fine and it is only very few devices this happens on so I imagine it is more to do…
4
votes
1 answer

Google Cloud Speech API gives UNAVAILABLE: Channel in TRANSIENT_FAILURE state in Android

I have been using Google Cloud Speech API for a while. I am specifically following Google Speech Demo provided by google. It is working with very great efficiency in devices with version 5.0 and higher. But when I run it in Android version lower…
3
votes
0 answers

Using Speechrecognizer API while Video recording using CamerX android

I'm currently using cameraX to record video with audio and it's working pretty well, however now I have to use SpeechRecognizer while recording the video and get the transcription of what the user is saying . UPDATE: I've tried extracting the audio…
3
votes
0 answers

What is the difference between createSpeechRecognizer() and createOnDeviceSpeechRecognizer()?

The createSpeechRecognizer() method was added in API level 8. The createOnDeviceSpeechRecognizer() method has been added in Android S. But their descriptions are same (according to the official site). Can anyone clarify the difference between them?…
Samudra Ganguly
  • 637
  • 4
  • 24
3
votes
0 answers

Android SpeechRecognizer: cancel() and stopListening() being completely ignored (but only at Android 9 and 10)

I have a project using RecognitionListener written in Kotlin. The speech-to-text function is a success but there are some problems after testing it at an Android 9 or 10 device. After I start listening with startListening() function, it actually…
3
votes
1 answer

How to prevent Android SpeechRecognizer from making noise after being destroyed?

I am using android.speech.SpeechRecognizer and am having a problem where it makes a distinctive clang sound even after I've called its stopListening(), cancel(), and destroy() methods. Here is how I create and destroy the SpeechRecognizer in…
Ellen Spertus
  • 6,576
  • 9
  • 50
  • 101
3
votes
1 answer

Android Continuous Speech Recognition

I'm working on an application that would require continuous speech recognition. The app will listen for only a few defined keywords, but once the listener gathers the users voice input, it will need to keep listening for more keywords until the user…
BennyB
  • 33
  • 1
  • 5
3
votes
1 answer

Android Speech Recognizer not connected to the recognition service

I want to introduce permanent voice recognition feature in my Android application. I am aware with the fact that voice recognition freezes from time to time on Android 4.1.1 and 4.2 and because of that I built up a timer and from time to time I…
Ispas Claudiu
  • 1,890
  • 2
  • 28
  • 54
1
2 3 4 5