Language Recognition
The Kendo UI for Angular SpeechToTextButton enables you to recognize speech in different languages by specifying a BCP 47 language tag through the lang
property. This allows you to tailor the speech recognition experience to your application's audience and support multilingual scenarios.
Setting the Language
To configure the language for speech recognition, set the lang
property to the desired BCP 47 language tag (for example, 'en-US'
for American English, 'de-DE'
for German, or 'es-ES'
for Spanish).
<button kendoSpeechToTextButton lang="es-ES"></button>
By default, the SpeechToTextButton uses 'en-US'
(American English) if no language is specified.
The following example demonstrates how to set the language for the SpeechToTextButton.
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.