Results 1 to 2 of 2

Thread: Create XML for Microsoft Speech SDK

  1. #1

    Thread Starter
    Registered User
    Join Date
    Sep 2001
    Posts
    14

    Create XML for Microsoft Speech SDK

    I am trying to create an XML file for use with Microsoft Speech SDK 5.1.
    I have managed to create a simple file that works with the speech engine but am unable to select from the list of available number more than once.
    Fore example, I want to be able to say "Quantity one two" or "Quantity two two" and the returned value be "Quantity 12" or "Quantity 22", instead, I have to say “Quantity 1, Quantity 2”. Does any one know of a way to do this? The only thing I can think of is when I say "Quantity"; change the code to dumps the XML file and loads a new one with top level commands of numbers and when I am done, load the main XML file again.

    Also does anyone have any good examples of creating dynamic rules in VB? It appears that there is very little information available about using MS Speech SDK. I Thanks for any help!


    <GRAMMAR LANGID="409">
    <DEFINE>
    <ID NAME="COLOR" VAL="1"/>
    <ID NAME="TYPE" VAL="2"/>
    <ID NAME="SIZE" VAL="3"/>
    <ID NAME="STYLE" VAL="4"/>
    <ID NAME="QUANTITY" VAL="5"/>
    </DEFINE>
    <RULE NAME="SELECTCOLOR" TOPLEVEL="ACTIVE" EXPORT="1">
    <P>COLOR</P>
    <RULEREF NAME="COLORLIST"/>
    </RULE>
    <RULE NAME="COLORLIST">
    <LN PROPNAME="color" PROPID="COLOR">
    <PN DISP="Honey" VAL="1">HONEY</PN>
    <PN VAL="2">NATURAL</PN>
    <PN VAL="3">FROST</PN>
    <PN VAL="4">SPICE</PN>
    <PN VAL="5">BORDEAUX</PN>
    <PN VAL="6">toffee</PN>
    <PN disp="1530" VAL="7"> EF</PN>
    </LN>
    </RULE>


    <RULE NAME="SELECTQUANTITY" TOPLEVEL="ACTIVE" EXPORT="1">
    <P>QUANTITY</P>
    <RULEREF NAME="QUANTITYLIST"/>
    </RULE>

    <RULE NAME="QUANTITYLIST" >
    <L PROPNAME="quantity" PROPID="QUANTITY">
    <P DISP="1" VAL="1">ONE</P>
    <P DISP="2" VAL="1">TWO</P>
    <P DISP="3" VAL="1">THREE</P>
    <P DISP="4" VAL="1">FOUR</P>
    <P DISP="5" VAL="1">FIVE</P>
    <P DISP="6" VAL="1">SIX</P>
    <P DISP="7" VAL="1">SEVEN</P>
    <P DISP="8" VAL="1">EIGHT</P>
    <P DISP="9" VAL="1">NINE</P>
    <P DISP="0" VAL="1">ZERO</P>
    </L>
    </RULE>



    </GRAMMAR>

  2. #2

    Thread Starter
    Registered User
    Join Date
    Sep 2001
    Posts
    14
    Ok....

    Guess this one was harder than I thought. Anybody?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width