Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
![]() |
Gets or sets the MIME type corresponding to the grammar format used. Read/write.
Usage
| ASP.NET markup: | <speech:Grammar Type="..." /> |
| Get value: | String = Grammar.Type; |
| Set value: | Grammar.Type = String; |
| Data type: | String |
| Required: | No |
Remarks
The Type property mirrors the type property on the SALT grammar object.
Example
The following example demonstrates the Type property that identifies a World Wide Web Consortium (W3C) Speech Recognition Grammar Specification (SRGS) grammar.
<form id="Form1" method="post" runat="server">
...
<speech:semanticmap id="TheSemanticMap" runat="server">
<speech:semanticitem id="siDest" runat="server"
targetattribute="value" targetelement="tbColor">
</speech:semanticitem>
</speech:semanticmap>
<speech:QA runat="server" id="QADest" >
<Prompt InlinePrompt="Please select a destination city" ID="Prompt1">
</Prompt>
<Answers>
<speech:Answer SemanticItem="siDest" ID="AnsDest" XPathTrigger="/SML/CITY">
</speech:Answer>
</Answers>
<Reco Reject="0.5" InitialTimeout="3000" BabbleTimeout="10000"
EndSilence="1000" MaxTimeout="30000">
<Grammars>
<speech:Grammar Type="application/srgs+xml" Lang="en-US"
Src="Grammars/Cities.grxml" >
</speech:Grammar>
</Grammars>
</Reco>
</speech:QA>
...
</form>
See Also
Grammar Class | Grammar Constructor | Grammar Members | Grammar Properties | Grammar Methods | Grammar Events | Grammar Remarks
.jpg)