I probably need to add some resource, but I created a file called 'test.grxml' with the following:
<grammar xml:lang = "EN-US" version="1.0" root="Yes_No_Root" mode="voice">
<rule id="yes_no_rule_id" scope="public">
<one-of>
<item>yes</item>
<item>no</item>
</one-of>
</rule>
</grammar>
I then run an application that has the following line:
Grammar^ grammar= gcnew Grammar( "test.grxml", "YES_NO" ) ;
and I get the following error message:
An unhandled exception of type 'System.FormatException' occurred in System.Speech.dll
Additional information: test.grxml(1,2): error : SRGS grammar not valid. SRGS namespace is not defined 'http://www.w3.org/2001/06/grammar'.
What do I need to do to make this work? I'm developing using MS VS VC++ 2008 Express Beta 2, developing for .NET Framework 3.5 (also have 2.0 and 3.0), and developing on a Vista machine (so I should have SAPI 5.3 built in). I also have downloaded and installed Windows SDK. I have gotten text-to-speech generation working just fine via adding System.Speech as a resource.
. Thanks!
[==Peter==]