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 lang property on the client-side grammar object. Read/write.
Usage
| ASP.NET markup: | <speech:Grammar Lang="..." /> |
| Get value: | String = Grammar.Lang; |
| Set value: | Grammar.Lang = String; |
| Data type: | String |
| Required: | No |
Remarks
The possible values for the Lang property appear in the lang definition of the Internet Engineering Task Force (IETF) RFC1766 specification. For example, a value of "en-US" denotes U.S. English. If the author does not specify a value for the Lang property, the platform defaults to an internal value.
The Lang property mirrors the lang attribute on the SALT grammar object.
Example
<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)