locked
Using RecognitionResult.Alternates RRS feed

  • Question

  •  

    I have tried using RecognitionResult.Alternates to obtain nBest results from the SML and to date I have never seen any entries in the collection.

     

    Has anyone ever used this property successfully?  Is there something that needs to be set to turn on Alternates?

     

    Thanks

     

    kstep

    Friday, November 16, 2007 2:18 PM

All replies

  • MaxAlternates is a property of SpeechRecognizer.  If you search the object browser for SpeechRecognizer, you'll see that you can set it in two places, the telephony session and/or the sequential workflow.

     

    this.TelephonySession.SpeechRecognizer.MaxAlternates = 4, for example.

     

    I haven't tested it, but you might have to set it back to 1 after performing the nbest processing, so you don't waste processing cycles where 1 result will do.

     

     

     

    Monday, December 3, 2007 7:53 PM
  •  

    I appreciate your response on this. Turns out what I was experiencing had nothing to do with whether or not I coded it properly but instead how I was testing it.

     

    Turns out you will not get any alternates if you use the speech debugger's softphone in debug mode.  I needed to use Alt-F5 to obtain true recognition results.  I blogged on this issue here.

     

    Thanks for the help.

     

    kstep

    Tuesday, December 4, 2007 2:53 AM