Vue SpeechToText - speechRecognitionConfig

Configures the Web Speech API (SpeechRecognition properties).

Selector: DxSpeechRecognitionConfig

This configuration object allows you to customize SpeechToText functionality.

continuous

Configures the SpeechRecognition.continuous property.

Type:

Boolean

The default SpeechRecognition behavior is to raise the end event when users pause their speech. To continue transcribing speech when users pause, set this property to true.

grammars

Configures the SpeechRecognition.grammars property.

Type:

Array<String>

Supply a set of words or patterns to influence SpeechRecognition results.

interimResults

Configures the SpeechRecognition.interimResults property.

Selector: interim-results
Type:

Boolean

The default SpeechRecognition behavior is to return results when the end event is raised. To return results as users speak, set this property to true.

lang

Configures the SpeechRecognition.lang property.

Type:

String

Assign a BCP 47 language tag to this property to configure the SpeechRecognition language.

maxAlternatives

Configures the SpeechRecognition.maxAlternatives property.

Selector: max-alternatives
Type:

Number

The SpeechRecognition interface supports alternatives for recognized words. Set maxAlternatives to a number larger than 1 to return multiple SpeechRecognitionAlternative objects in each SpeechRecognitionResult. Web Speech API sorts SpeechRecognitionAlternative objects by recognition confidence.