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 for the recognition service to recognize.
[Value("SpeechGrammar")]
public class SpeechGrammar
Inheritance
SpeechGrammar
Inherited Members

Remarks

Grammar is defined using JSpeech Grammar Format (JSGF).

NOTE

The concept of grammar has been removed from the Web Speech API. Related features remain in the specification and are still recognized by supporting browsers for backwards compatibility, but they have no effect on speech recognition services.

-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