google-voice-search

sendOrderedBroadcast setPackage requirement in Oreo

非 Y 不嫁゛ 提交于 2019-12-22 11:14:10
问题 Why would the following Ordered Broadcast fail in Android Oreo, unless I specifically set the package name? final Intent vrIntent = new Intent(RecognizerIntent.ACTION_GET_LANGUAGE_DETAILS); // Setting the package it will work. Omitting, it will fail // vrIntent.setPackage("com.google.android.googlequicksearchbox"); getContext().sendOrderedBroadcast(vrIntent, null, new BroadcastReceiver() { @Override public void onReceive(final Context context, final Intent intent) { // final Bundle bundle =

How to access my Android Application from Google Voice Assistance

泄露秘密 提交于 2019-12-21 23:07:39
问题 I am developing an android application, let's say it for an instance as "RemindMe". In this application, I set alarms specific to application level. They are not system alarms. My requirement is, after the opening of Google assistant (Ex: by saying "OK Google" followed by "What is my next alarm in RemindMe application", it should fetch next alarm from "RemindMe" application (No need to open the RemindMe app) and show in Google voice Assistant. I checked DialogFlow (https://dialogflow.com/). I

sendOrderedBroadcast setPackage requirement in Oreo

99封情书 提交于 2019-12-05 23:54:01
Why would the following Ordered Broadcast fail in Android Oreo, unless I specifically set the package name? final Intent vrIntent = new Intent(RecognizerIntent.ACTION_GET_LANGUAGE_DETAILS); // Setting the package it will work. Omitting, it will fail // vrIntent.setPackage("com.google.android.googlequicksearchbox"); getContext().sendOrderedBroadcast(vrIntent, null, new BroadcastReceiver() { @Override public void onReceive(final Context context, final Intent intent) { // final Bundle bundle = intent.getExtras(); final Bundle bundle = getResultExtras(true); if (bundle != null) { if (bundle

How to access my Android Application from Google Voice Assistance

孤人 提交于 2019-12-04 22:02:25
I am developing an android application, let's say it for an instance as "RemindMe". In this application, I set alarms specific to application level. They are not system alarms. My requirement is, after the opening of Google assistant (Ex: by saying "OK Google" followed by "What is my next alarm in RemindMe application", it should fetch next alarm from "RemindMe" application (No need to open the RemindMe app) and show in Google voice Assistant. I checked DialogFlow ( https://dialogflow.com/ ). I could not achieve my requirement. Till date in my observation., Using DialogFlow, after opening the

Integrate Google Voice Recognition in Android app

假如想象 提交于 2019-12-03 05:56:51
问题 I want to introduce a new feature into my app: permanent voice recognition . First of all I followed these posts: Voice recognition Speech recognition in Android Offline Speech Recognition In Android (JellyBean) and more others, plus other posts from different websites. Problem: What actually I'm trying to do is to have a permanent voice recognition without displaying google's voice activity. For example: When I start the application the voice recognition should start and listen. When the

Integrate Google Voice Recognition in Android app

断了今生、忘了曾经 提交于 2019-12-02 20:34:24
I want to introduce a new feature into my app: permanent voice recognition . First of all I followed these posts: Voice recognition Speech recognition in Android Offline Speech Recognition In Android (JellyBean) and more others, plus other posts from different websites. Problem: What actually I'm trying to do is to have a permanent voice recognition without displaying google's voice activity. For example: When I start the application the voice recognition should start and listen. When the recognizer matches some words then my app will do different actions accordingly. I do not like to press a

RecognizerIntent.ACTION_GET_LANGUAGE_DETAILS in Oreo

若如初见. 提交于 2019-11-30 18:08:27
In most Android devices, the RecognitionService will be supplied by Google's native 'Now/Assistant' application. Up until Android Oreo, I was able to query the languages supported by the Google Recognizer with the following simple code: final Intent vrIntent = new Intent(RecognizerIntent.ACTION_GET_LANGUAGE_DETAILS); // vrIntent.setPackage("com.google.android.googlequicksearchbox"); getContext().sendOrderedBroadcast(vrIntent, null, new BroadcastReceiver() { @Override public void onReceive(final Context context, final Intent intent) { // final Bundle bundle = intent.getExtras(); final Bundle

RecognizerIntent.ACTION_GET_LANGUAGE_DETAILS in Oreo

怎甘沉沦 提交于 2019-11-30 16:56:52
问题 In most Android devices, the RecognitionService will be supplied by Google's native 'Now/Assistant' application. Up until Android Oreo, I was able to query the languages supported by the Google Recognizer with the following simple code: final Intent vrIntent = new Intent(RecognizerIntent.ACTION_GET_LANGUAGE_DETAILS); // vrIntent.setPackage("com.google.android.googlequicksearchbox"); getContext().sendOrderedBroadcast(vrIntent, null, new BroadcastReceiver() { @Override public void onReceive

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

Error ERROR_RECOGNIZER_BUSY with offline speech recognition

两盒软妹~` 提交于 2019-11-26 14:36:35
问题 I have made research on google offline speech recognition. but it works fine in google nexus 5(OS:-4.4) but same build if I implement in Samsung galaxy s5(OS:-5.0) it is not recognizing and it is showing this error: 8- ERROR_RECOGNIZER_BUSY. Below is my code. By keeping this link as reference I have made a changes http://www.truiton.com/2014/06/android-speech-recognition-without-dialog-custom-activity/ Without internet voice must recognize. I have worked on Pocket sphinx but it take lot of