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 6033225
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T05:27:10+00:00 2026-05-23T05:27:10+00:00

When doing speech recognition using Google’s server’s via Chrome’s HTML 5 speech input support,

  • 0

When doing speech recognition using Google’s server’s via Chrome’s HTML 5 speech input support, you get back roughly 6 results each time that are the 6 possible interpretations of the user’s voice audio. When I do the same operation in my Android app, I only seem to get back one. Is this just the way it is or is there a setting that will cause the Android recognizer intent to return more than one utterance?

Relevant code samples:

/**
 * Fire an intent to start the voice recognition activity.
 */
private void startVoiceRecognitionActivity()
{
    Intent intent = new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH);
    intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE_MODEL,
            RecognizerIntent.LANGUAGE_MODEL_FREE_FORM);
    intent.putExtra(RecognizerIntent.EXTRA_PROMPT, "Speech reco demo...");
    startActivityForResult(intent, REQUEST_CODE);
}

/**
 * Handle the results from the voice recognition activity.
 */
@Override
protected void onActivityResult(int requestCode, int resultCode, Intent data)
{
    if (requestCode == REQUEST_CODE && resultCode == RESULT_OK)
    {
        // Set the current global speech results to this latest session's.
        ArrayList<String> matches = data.getStringArrayListExtra(
                RecognizerIntent.EXTRA_RESULTS);

        AndroidApplication andApp = AndroidApplication.getInstance();

        andApp.speechRecoResults.setContents(matches);
    }

    super.onActivityResult(requestCode, resultCode, data);
} // onActivityResult()

UPDATE: I added the following line of code to startVoiceRecognitionActivity() as per |Z|Shadow|Z| right before the startActivityForResult() call and I get multiple utterances now:

intent.putExtra(RecognizerIntent.EXTRA_MAX_RESULTS,5);

— roschler

  • 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-05-23T05:27:11+00:00Added an answer on May 23, 2026 at 5:27 am

    Yes it can return multiple utterances I have a few implementations that do such. Could you post the code you are using so we could help you out better?

    Answer to comment:

    Yes and I can set it to return however many the server picks up…I usually just set it to 5. Check my previous post which includes my code of one implementation. Voice Recognition as a background service This one disables Google’s dialog box that pops up when you record. THis line gets the amount of results to return: intent.putExtra(RecognizerIntent.EXTRA_MAX_RESULTS,5)

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

Sidebar

Related Questions

Doing an ajax get request works as expected using the following code: $.ajax({ type:
I've seen speech recognition from input devices (obviously) and I've seen speech recognition from
I am trying to write a program that supports speech recognition via a custom
Doing cross platform development with 64bit. Using gcc/linux and msvc9/server 2008. Just recently deployed
I'm doing a project that involves speech recognition. But here i don't just need
In C# 3.5 System.Speech.dll was added for doing text-to-speech and speech-to-text conversions. Searching on
I want to build a speech recognition engine in ruby. I know i'll never
Doing a search using django-sphinx gives me results._sphinx that says there were 68 results,
Doing some archiving/deleting of some uncommonly used databases on an Oracle server. Has anyone
I am doing some development on speech to text and text to speech and

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.