Table of Contents

Class SpeechGrammar

Namespace
CSharpToJavaScript.APIs.JS
Assembly
CSharpToJavaScript.dll
IMPORTANT
Deprecated
The SpeechGrammar 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.

-Web Speech API

See also on MDN

Constructors

SpeechGrammar()

public SpeechGrammar()

Properties

Src

IMPORTANT
Deprecated
The src property of the SpeechGrammar interface
is 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
Deprecated
The optional weight property of the
SpeechGrammar 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.

Remarks