Table of Contents

Class SpeechRecognitionAlternative

Namespace
CSharpToJavaScript.APIs.JS
Assembly
CSharpToJavaScript.dll

The SpeechRecognitionAlternative interface of the Web Speech API represents a single word that has been recognized by the speech recognition service.

[Value("SpeechRecognitionAlternative")]
public class SpeechRecognitionAlternative
Inheritance
SpeechRecognitionAlternative
Inherited Members

Remarks

Constructors

SpeechRecognitionAlternative()

public SpeechRecognitionAlternative()

Properties

Confidence

The confidence read-only property of the
SpeechRecognitionResult interface returns a numeric estimate of how
confident the speech recognition system is that the recognition is correct.

[Value("confidence")]
public Number Confidence { get; }

Property Value

Number

A number between 0 and 1.

Remarks

NOTE

Mozilla's implementation of confidence is still
being worked on — at the moment, it always seems to return 1.

-Web Speech API

See also on MDN

Transcript

The transcript read-only property of the
SpeechRecognitionResult interface returns a string containing the
transcript of the recognized word(s).

[Value("transcript")]
public string Transcript { get; }

Property Value

string

A string.

Remarks

For continuous recognition, leading or trailing whitespace will be included where
necessary so that concatenation of consecutive SpeechRecognitionResults
produces a proper transcript of the session.

-Web Speech API

See also on MDN