I am trying to create dtmf grammar which accepts 5 digits. Here is how the grammar looks like
<rule id="UserIdDtmf" scope="public"><item repeat="1-5"><?MS_Grammar_Editor GroupWrap?><one-of><item>1</item><item>2</item><item>3</item><item>4</item><item>5</item><item>6</item><item>7</item><item>8</item><item>9</item><item>0</item></one-of></item><tag>$.dtmfEmployeeId = $recognized.text</tag></rule
if I enter just one digit then it returns correct data. But if I enter 11111 then I see following message.
2 - Path not found through this rule. This could be due to the current rule referencing a compiled grammar or user termination
3 - Getting SML result from Speech Recognizer
SML output failure
Can't recognize phrase using this rule. This could be due to
- No path in this rule matches the phras
- Incorrect use of punctuation in the input strin
- A speech engine timeout
Can anyone tell me what I am doing wrong. I have SpeechSDK beta 4. Thanks in advance.
DotNetJunkies User - 08 Apr 2004 20:32 GMT
Enter the numbers like <item> 1 </item><item> 2 </item>
This should work.
---