JavaScript/jQuery SpeechToText - SpeechRecognitionConfig
Configures the Web Speech API (SpeechRecognition properties).
This configuration object allows you to customize SpeechToText functionality.
grammars
Configures the SpeechRecognition.grammars property.
Supply a set of words or patterns to influence SpeechRecognition results.
lang
Configures the SpeechRecognition.lang property.
Assign a BCP 47 language tag to this property to configure the SpeechRecognition language.
maxAlternatives
Configures the SpeechRecognition.maxAlternatives property.
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.