none
Need help with grammar file? RRS feed

  • Question

  • Hi,

    I have a simple grammar file as shown. 

    If the user speaks any sentence which does not contain below words "total" or "balance", the speech is hypothesized and recognized at a point and returns "account balance" as text. 

    Please help with the grammar file modification to avoid such incorrect recognition. If the user speaks words that are not in grammar file, a "no match found" message should be displayed.

    <?xml version="1.0" encoding="UTF-8" ?>
    <grammar version="1.0" xml:lang="en-US" mode="voice" root="VenBa" xmlns="http://www.w3.org/2001/06/grammar" tag-format="semantics/1.0"   >
    
    <rule id="VenBa" scope="public">
    <one-of>
    <item>  
    <item>total</item>
    <item>balance</item>
    <tag>out.Text="account balance";out.testCaseResult = "Passed";</tag>
    </item>
    <item>  
    <item>not</item>
    <item>able</item>
    <item>command</item>
    <tag>out.Text="Could not interpret the command";out.testCaseResult = "Failed";</tag>
    </item>
    </one-of>
     </rule>
    </grammar>


    Tuesday, May 28, 2013 1:40 PM

Answers