I am developing a C# application based on the Microsoft Speech API. I need to manage static and free text in my application. For example, a user could say "Search file [here free dictation to let the user gives the filename]".
Based on this post (Combine free-form dictation and semantic in a srgs grammar), I tried to use the following grammar:
<grammar version="1.0" xml:lang="fr-fr" mode="voice" root="toplevel"
xmlns="http://www.w3.org/2001/06/grammar" tag-format="semantics/1.0" >
<rule id="toplevel" scope="public">
<ruleref uri="#tmkAction" />
<ruleref special="GARBAGE"/>
<ruleref uri="#tmkItemType" />
<ruleref uri="sapi:dictation" type="application/srgs+xml"/>
<tag>out.SpokenText=rules.latest();</tag>
</rule>
But, according to the validator, this grammar file is not correct ("Warning: Could not load external grammar 'grammar:dictation'") and does not work.
does anyone have any idea how mix free text and static grammars in Microsoft Speech Platform?
Thank you