PDA

View Full Version : Speech XML help please



s.morris
November 7th, 2003, 04:13 PM
Hi All,
just been trying the girder speech plug-in, but can't seem to get my head around the speech XML document
Below is my attempt at modifying the file but it does not seem to work :cry:

<GRAMMAR LANGID="409">

<DEFINE>
<ID NAME="VID_Test1" VAL="1"/>
<ID NAME="VID_Test2" VAL="2"/>
<ID NAME="VID_Test2" VAL="3"/>
</DEFINE>

<RULE ID="VID_Test1" TOPLEVEL="ACTIVE">


computer</P>
</RULE>

<RULE ID="VID_Test2" TOPLEVEL="ACTIVE">


quiet</P>
</RULE>

<RULE ID="VID_Test3" TOPLEVEL="ACTIVE">


zoom</P>
</RULE>

</GRAMMAR>

Would appreciate it if some one could send me there GML and XML for there speech so i could see how it is done
or any help

Thanks

Steve

BeavFish
December 4th, 2003, 10:46 PM
I've been using the speech plugin with great success for the past month or so.

I noticed your problem right away.




<DEFINE>
<ID NAME="VID_Test1" VAL="1"/>
<ID NAME="VID_Test2" VAL="2"/>
<ID NAME="VID_Test2" VAL="3"/>
</DEFINE>



In your XML file, your second and third ID Names are identical. I know you were shooting for VID_Test3 in that third definition. Minor little thing, you've probably looked at it several times.

Scrub your XML for errors every time you save it, making sure there is exactly one unique ID Name defined in the top section, and one Rule for that ID in the bottom section. Look twice for good measure.

Also, in the DEFINE Section, make sure that each ID is set up to return a unique VAL. You can't have duplicates there, either.

If that XML file isn't perfect, the Girder Speech plugin will crash when you try to load it.

I spent many hours when I got started with this plugin, looking for something just like that.