locked
SRGS Grammar: Issue with <one-of> tag if underlying <item> has repeat="1-" RRS feed

  • Question

  • In the grammar below, the Speech Recognizer comes out of recognition as soon as first digit is spoken.

    Ideally, it should wait for the timeout since repeat count is  unlimited.  ( "1-").

     

    <?xml version="1.0"?>
    <grammar xml:lang="en-GB" version="1.0" xmlns="
    http://www.w3.org/2001/06/grammar" root="Digit_nDigits">
      <rule id="Digit_Single" scope="public">
        <one-of>

           <item> zero   </item>
           <item> oh    </item>
           <item> nought </item>
           <item> one    </item>
           <item> two    </item>
           <item> three  </item>
           <item> four   </item>
           <item> five   </item>
           <item> six    </item>
           <item> seven  </item>
           <item> eight  </item>
           <item> nine   </item>
           <item> double </item>
        </one-of>
      </rule>
      <rule id="Digit_nDigits" scope="public">
        <one-of>
          <item repeat="1-"> <ruleref uri="#Digit_Single" /> </item>
       
    </one-of>
      </rule>
    </grammar>

     
    If I remove <one-of> tag,  then the speech server does allow for an unlimited length of digits and uses the trail silence to determine the end of the recognition.

     

    Wednesday, December 5, 2007 3:56 PM