Question about Microsoft Speech 11 recognition RRS feed

  • Question

  • By the Speec 11 help I can easily write code for Speech Recognition:

    Dim Words() As String = {"one","two","three"} Dim Parole As New Choices For Each wrd In Words Parole.Add(New String() {wrd.Trim}) Next GrammarBuilder = New GrammarBuilder(Parole) Grammar = New Grammar(GrammarBuilder) Grammar.Name = Name Grammar.Enabled = True MainEngine.LoadGrammar(Grammar) MainEngine.SetInputToDefaultAudioDevice() MainEngine.RecognizeAsync(RecognizeMode.Multiple) Private Sub Speech_Recognized(ByVal sender As Object, ByVal e As SpeechRecognizedEventArgs) Handles MainEngine.SpeechRecognized Debug.Print(e.Result.Text & Space(2) & (e.Result.Confidence).ToString("00%", CultureInfo.CurrentCulture) End Sub


    First time I say: "one"...... e.Result.Confidence = ~97%

    Second time I say: "one"...... e.Result.Confidence =~80%

    Third time I say: "one"...... e.Result.Confidence =~65%

    ..... down until e.Result.Confidence =~20% and then rests low

    QUESTION: there is something to "refresh" so that e.Result.Confidence ramains on excellent/good values??

    • Edited by ezio1950 Wednesday, February 21, 2018 12:37 AM
    Wednesday, February 21, 2018 12:36 AM

All replies

  • QUESTION: there is something to "refresh" so that e.Result.Confidence ramains on excellent/good values??

    Hi ezio1950,

    What is MainEngine? I can not compile your code. Can you provide more code here, so that I can know what problem you have.

    Best Regards,


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact

    Friday, February 23, 2018 1:43 AM
  • Private WithEvents MainEngine As SpeechRecognitionEngine
    Private GrammarBuilder As GrammarBuilder
    Private Grammar As Grammar

    Tuesday, February 27, 2018 12:09 AM
  • The e.result.confidence on my system for words loaded as grammar remains fairly consistent. Therefore I can not replicate your issue. An issue which could be caused by hardware problems, for all I know, on your system or noise.

    La vida loca

    Wednesday, February 28, 2018 12:39 AM