Class SpeechGrammar
- Namespace
- CSharpToJavaScript.APIs.JS
- Assembly
- CSharpToJavaScript.dll
IMPORTANT
DeprecatedSpeechGrammar interface of the Web Speech API represents a set of words or patterns of words that we want the recognition service to recognize.
[Value("SpeechGrammar")]
public class SpeechGrammar
- Inheritance
-
SpeechGrammar
- Inherited Members
Remarks
Grammar is defined using JSpeech Grammar Format (JSGF.) Other formats may also be supported in the future.
Constructors
SpeechGrammar()
public SpeechGrammar()
Properties
Src
IMPORTANT
Deprecatedsrc property of the SpeechGrammar interfaceis used to get or set a string that contains the grammar within the
SpeechGrammar object.
[Value("src")]
public string Src { get; set; }
Property Value
- string
A string representing the grammar.
Remarks
Weight
IMPORTANT
Deprecatedweight property of theSpeechGrammar interface sets and returns the weight of the
SpeechGrammar object.
[Value("weight")]
public Number Weight { get; set; }
Property Value
- Number
A float representing the weight of the grammar, in the range 0.0–1.0.