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

  • Home
  • SEARCH
  • 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 8772283
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T17:59:56+00:00 2026-06-13T17:59:56+00:00

I’m trying to recognize simple english words, but no recognition occur. private void Form1_Load(object

  • 0

I’m trying to recognize simple english words, but no recognition occur.

private void Form1_Load(object sender, EventArgs e)
    {
        SpeechRecognitionEngine srEngine = new SpeechRecognitionEngine();

        // Create a simple grammar that recognizes "twinkle", "little", "star"
        Choices song_00 = new Choices();
        song_00.Add(new string[] {"twinkle", "little", "star"});

        // Create a GrammarBuilder object and append the choices object
        GrammarBuilder gb = new GrammarBuilder();
        gb.Append(song_00);

        // Create the grammar instance and load it into the sppech reocognition engine.
        Grammar g = new Grammar(gb);

        g.Enabled = true;

        srEngine.LoadGrammar(g);
        srEngine.SetInputToDefaultAudioDevice();
        // Register a handler for the Speechrecognized event.
        srEngine.SpeechRecognized += new EventHandler<SpeechRecognizedEventArgs>(sre_SpeechRecognized);
        srEngine.RecognizeAsync(RecognizeMode.Multiple);
    }

    // Create a simple handler for the SpeechRecognized event.
    void sre_SpeechRecognized(object sender, SpeechRecognizedEventArgs e)
    {
        MessageBox.Show("Speech recognized: " + e.Result.Text);
    }

Below one does not show any message, too.

foreach (RecognizerInfo ri in SpeechRecognitionEngine.InstalledRecognizers())
{
    MessageBox.Show(ri.Culture);
}

So the main reason of failing that I can think is language.

Is there any solution to use english recognition in non-english version of windows?
or
Is there problems that I couldn’t notice?

  • Now I’m using non-english version of windows7(64-bit), and my mic is connected well. (I already checked the control panel.)
  • 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-13T17:59:58+00:00Added an answer on June 13, 2026 at 5:59 pm

    You have simple choices defined, but you don’t mention what exactly you are trying to match. Microsoft Speech uses a confidence scale in order to decide if it heard a phrase, and you may not be hitting this mark when you are speaking.

    Add a callback for SpeechRecognitionRejected and SpeechHypothesized. See if they are firing and what information is coming out of them. It will help you debug.

    Simply looking for the words “twinkle”, “little” and “star” will not allow you capture “Twinkle, twinkle, little star”. It will capture those words as singletons, but as soon as you start stringing them together and adding new words the confidence level will go down and you will have a much lower chance of getting the result you want.

    In addition to Choices you should also be defining phrases that use those choices and put them into context. The GrammerBuilder class documentation at MSDN gives an example:

    private Grammar CreateColorGrammar()
    {
    
      // Create a set of color choices.
      Choices colorChoice = new Choices(new string[] {"red", "green", "blue"});
      GrammarBuilder colorElement = new GrammarBuilder(colorChoice);
    
      // Create grammar builders for the two versions of the phrase.
      GrammarBuilder makePhrase = new GrammarBuilder("Make background");
      makePhrase.Append(colorElement);
      GrammarBuilder setPhrase = new GrammarBuilder("Set background to");
      setPhrase.Append(colorElement);
    
      // Create a Choices for the two alternative phrases, convert the Choices
      // to a GrammarBuilder, and construct the grammar from the result.
      Choices bothChoices = new Choices(new GrammarBuilder[] {makePhrase, setPhrase});
      Grammar grammar = new Grammar((GrammarBuilder)bothChoices);
      grammar.Name = "backgroundColor";
      return grammar;
    }
    

    Notice that the code does not assume that “Set background to blue” will be captured. It explicitly sets that condition up.

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

Sidebar

Related Questions

Seemingly simple, but I cannot find anything relevant on the web. What is the
Basically, what I'm trying to create is a page of div tags, each has
I am trying to understand how to use SyndicationItem to display feed which is
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have just tried to save a simple *.rtf file with some websites and
I want to count how many characters a certain string has in PHP, but
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I am trying to render a haml file in a javascript response like so:
I am doing a simple coin flipping experiment for class that involves flipping a
I have a French site that I want to parse, but am running into

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.