Microsoft KB Archive/841388

= BUG: A &quot;no&quot; answer is falsely recognized when you first answer &quot;yes&quot; to the question &quot;Any extension&quot; in Speech Software Development Kit =

Article ID: 841388

Article Last Modified on 3/20/2007

-

APPLIES TO


 * Microsoft Speech Software Development Kit (SDK) 1.0

-





SYMPTOMS
Consider the following scenario. In Microsoft Speech Software Development Kit (SDK) 1.0, you use a phone control to obtain a phone number. You answer &quot;yes&quot; to the question, &quot;Any extension?&quot; Then, you answer &quot;no&quot; to the same question after you deny the extension. In this scenario, you may experience the following behavior:  When you use text emulation to say &quot;no&quot;, you receive the following reply:

&quot;I didn't understand you, any extension?&quot;

 When you say &quot;no&quot; by using voice, Speech SDK falsely recognizes &quot;no&quot; as the number nine. The engine may not always recognize &quot;no&quot; as the number nine. Something else in the grammar is just as likely to be recognized.

Note This issue also occurs when you use the ZipCode control.



CAUSE
This issue occurs because the question and answer flow has a prompt select function to change the prompt and has a grammar select function to change the grammar. The grammar select function deactivates the &quot;yes&quot; or &quot;no&quot; answer when an extension is required. When you deny the extension, the prompt select function does not reactivate the &quot;yes&quot; or &quot;no&quot; answer.



WORKAROUND
To work around this issue, follow these steps:   Include the following Microsoft JScript function in a separate file or include the following JScript function inside the .aspx page where the phone control is located: function kbfunction { if( Phone1.SaidHasExtention && siExtension.IsEmpty ) {                  SpeechCommon.needPostback = true; } } Note Phone1 is the ID of the control, and siExtension is the semantic item that receives the extension number.   Add the function to the onClientComplete event of the phone control by using code that is similar to the following code example:  </ol>

<div class="status_section">

STATUS
Microsoft has confirmed that this is a bug in the Microsoft products that are listed in the &quot;Applies to&quot; section.

Keywords: kbpending kbtshoot kbbug KB841388

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.