none
Speech recognition grammar - Ruleref element problem RRS feed

  • Question

  • Hi friends,

    I am creating grammar (.grxml) file programmatically and set all rules' references uris in root rule using ruleref element like below (syntax not perfect, just to make it clearer)

    root = top

    <rule id = top>

    <ruleref uri = #one>

    <ruleref uri = #two>

    etc. 

    however, it seems its not referencing the rules at all, but if I set root = one , it works but only for that rule(one) and not for others. Can anybody help me resolving this please ?

    Thanks,

    Friday, June 22, 2012 12:52 PM

Answers

  • got it. required to do,

    root = top

    <rule id=top>

    <one-of>

    <item><ruleref uri = #one></item>

    <item><ruleref uri = #two></item>

    </one-of>

    </rule>

    • Marked as answer by Megha Dave Wednesday, August 29, 2012 11:29 AM
    Wednesday, August 29, 2012 11:29 AM