Class SpeechGrammarList
- Namespace
- CSharpToJavaScript.APIs.JS
- Assembly
- CSharpToJavaScript.dll
NOTE
ExperimentalSpeechGrammarList interface of the Web Speech API represents a list of SpeechGrammar objects containing words or patterns of words that we want the recognition service to recognize.
[Value("SpeechGrammarList")]
public class SpeechGrammarList
- Inheritance
-
SpeechGrammarList
- Inherited Members
Remarks
Grammar is defined using JSpeech Grammar Format (JSGF.) Other formats may also be supported in the future.
Constructors
SpeechGrammarList()
NOTE
ExperimentalSpeechGrammarList() constructor creates a newSpeechGrammarList object instance.
public SpeechGrammarList()
Remarks
Properties
Length
NOTE
Experimentallength read-only property of theSpeechGrammarList interface returns the number of
SpeechGrammar objects contained in the SpeechGrammarList.
[Value("length")]
public ulong Length { get; }
Property Value
- ulong
A number indicating the number of SpeechGrammar objects contained in the
SpeechGrammarList.
Remarks
Methods
AddFromString(string, Number)
NOTE
ExperimentaladdFromString() method of theSpeechGrammarList interface takes a grammar present in a specific
string within the code base (e.g., stored in a variable) and adds it to
the
SpeechGrammarList as a new SpeechGrammar object.
[Value("addFromString")]
public GlobalObject.Undefined AddFromString(string string_, Number weight = null)
Parameters
Returns
Remarks
AddFromURI(string, Number)
NOTE
ExperimentaladdFromURI() method of theSpeechGrammarList interface takes a grammar present at a specific URI and
adds it to the
SpeechGrammarList as a new SpeechGrammarobject.
[Value("addFromURI")]
public GlobalObject.Undefined AddFromURI(string src, Number weight = null)
Parameters
Returns
Remarks
Note that some speech recognition services may support built-in grammars that can be
specified by URI.