Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8184345
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T01:28:15+00:00 2026-06-07T01:28:15+00:00

I am trying to add a few commands to android default voicedialer app. It

  • 0

I am trying to add a few commands to android default voicedialer app. It has commands like Open, dial, call, redial etc, I want to include lets say ‘Find’ to it. I have downloaded the source code from here and compiled it in Eclipse. the application sets up Grammar for arguments of these commands like it stores the names and phone numbers of the persons in contact list to generate intents when their names are recognized for CALL JOHN voice command. For CALL in this command it is just comparing the first word of resulting recognized string to “CALL”.

I added “FIND” as an extra else if condition in the onRecognitionSuccess() function as shown below:

public class CommandRecognizerEngine extends RecognizerEngine 
{
 ............
 protected  void onRecognitionSuccess(RecognizerClient recognizerClient) throws InterruptedException 
 {
  .....................
  if ("DIAL".equalsIgnoreCase(commands[0])) 
        {
            Uri uri = Uri.fromParts("tel", commands[1], null);
            String num =  formatNumber(commands[1]);
            if (num != null) 
            {
                addCallIntent(intents, uri, literal.split(" ")[0].trim() + " " + num, "", 0);
            }
        }
    ................
    else if ("FIND".equalsIgnoreCase(commands[0])) 
        {
            if (Config.LOGD) 
                Log.d(TAG, "FIND detected...");
        }
  }//end onRecognitionSuccess
 }//end CommandRecognizerEngine

but my app can’t recognize it. Does anyone know how does recognizer detects commands like OPEN or CALL etc or refer me to appropriate documentation?

Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T01:28:17+00:00Added an answer on June 7, 2026 at 1:28 am

    As it has been over a year, I doubt you need this answer anymore. However, some other people might find this through Google, as I did.

    Right now, the best way to apply grammars to speech recognition on Android is to set the number of results higher, and then filter the results based on your grammar. It is not perfect, as the word recognized may not have passed a threshold to be included in the list, but it does greatly improve the accuracy of all speech recognition applications where the types of things you can say are somewhat limited.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to add few contents to expander however, it throws following error <Expander
I am trying to add a few extra methods to a matrix type from
I've looked at quite a few links for people trying to add content /
I'm trying add data triggers to the default combobox style so each text item
Trying to add a blank sample app for a rails tutorial to GitHub, but
Trying to add email notification to my app in the cleanest way possible. When
In my ASP.NET application, I was trying to add few white spaces between two
I am trying to add a few different GET variables to the url. I
I'm trying to add a few tweets to an infowindow in Google Maps. I
Long story short, I'm trying to add a few extra items to ViewData to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.