android-speech-api

SpeechRecognizer not available when targeting Android 11

本秂侑毒 提交于 2020-12-26 07:55:23
问题 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 changing anything else, it is available again. This happens on a real device (Pixel 3a) and the emulator. It doesn't seem to be a behaviour change. The only requirement mentioned by the Recognizer API is the Manifest.permission.RECORD_AUDIO I also found

SpeechRecognizer not available when targeting Android 11

ε祈祈猫儿з 提交于 2020-12-26 07:55:17
问题 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 changing anything else, it is available again. This happens on a real device (Pixel 3a) and the emulator. It doesn't seem to be a behaviour change. The only requirement mentioned by the Recognizer API is the Manifest.permission.RECORD_AUDIO I also found

SpeechRecognizer doesn't timeout when silent

主宰稳场 提交于 2019-12-24 11:00:14
问题 With the recent Google App update (6.14.20.21.arm), the google Speech recognizer stopped working. If you respond within seconds after the recognizer is started , the listener onResult is called. But if we don't respond, and there is no callback getting called. The onError callback used to call with SpeechRecognizer.ERROR_SPEECH_TIMEOUT Is there anyone having this issue? The same issue using the RecognizerIntent.ACTION_RECOGNIZE_SPEECH Intent . The onActivityResult is not called if no response

Speech Recognizer on Google Wear in Emulator no voice input

蹲街弑〆低调 提交于 2019-12-13 16:56:39
问题 I was trying to use the Free-form Speech Input from Google Wear site. From the hello world example, I just added a click on textView. It does bring up the Speak Now activity from the speech intent, but the emulator was not able to detect any sound from my mic. I'm using Mac OS 10.9.3, I've tried both arm and intel version of the wear watch, and checked the hardware keyboard present on the AVD creation. The documentation said there is a system built-in Speech Recognizer, so installing the

Using Android Speech Recognition APIs from Google Glass

家住魔仙堡 提交于 2019-11-28 17:59:21
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 and run it without a problem (through ADB), but once it's running, neither Android speech recognition API I've tried works on Glass: startActivityForResult(new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH)); This results in an ActivityNotFoundException ("no activity found to handle intent") when running on Google Glass SpeechRecognizer

Muting the Google voice recognition beep sound

烂漫一生 提交于 2019-11-28 03:15:14
问题 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 work for me. I am trying to find the beep file location so I could just go and delete it from the system. I followed this thread, but I cannot see the file in 5.0 system file. 回答1: Assuming you don't want to mute all streams because you are

Using Android Speech Recognition APIs from Google Glass

筅森魡賤 提交于 2019-11-27 10:59:40
问题 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 and run it without a problem (through ADB), but once it's running, neither Android speech recognition API I've tried works on Glass: startActivityForResult(new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH)); This results in an

Google speech Api v1 not working?

纵然是瞬间 提交于 2019-11-26 22:58:46
问题 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 working. I am not getting any response from that link. Any one have any idea? Is there any alternative links? Please help protected String doInBackground(Void... params) { // TODO Auto-generated method stub String urlString = "https://www.google.com/speech