KendoReact SpeechToTextButton Configuration OptionsPremium
The KendoReact SpeechToTextButton component offers various configuration options for controlling how speech recognition works. This page outlines how to configure the speech recognition settings to meet your application's needs.
The SpeechToTextButton provides options for:
- Language configuration—You can set different languages used for speech recognition.
- Continuous recognition—Enables the user to continue speaking after results are returned.
- Interim results—Enables real-time feedback to users as they speak.
- Multiple recognition alternatives—Allows multiple interpretations of the spoken text.
Language Configuration
You can set the language used for speech recognition with the lang
property. The SpeechToTextButton component supports various language codes based on the Web Speech API language support.
Supported Languages
The available languages depend on the underlying speech recognition engine. For the browser's Web Speech API, refer to the list of supported languages.
Continuous Recognition
The continuous
property determines whether the speech recognition should continue listening after results are returned. When set to true
, the recognition will continue until explicitly stopped, allowing users to speak multiple sentences.
Interim Results
With interimResults
set to true
, the component will return partial results as they become available while the user is speaking. This provides real-time feedback to users as they speak.
Multiple Recognition Alternatives
The SpeechToTextButton component can provide alternative interpretations of the spoken text by configuring the maxAlternatives
property. This is useful for ambiguous speech or words with similar pronunciations.