SpeechToTextButtonSettings
Defines the settings interface for the speech-to-text functionality used in components that integrate the SpeechToTextButton component, such as the AIPrompt (see example).
Definition
Package:@progress/kendo-angular-buttons
Syntax:
const speechSettings: SpeechToTextButtonSettings = {
continuous: true,
lang: 'en-US',
interimResults: false,
disabled: false
};
Properties
continuous?
boolean
Specifies whether the component returns continuous results for each recognition, or only a single result once recognition stops.
disabled?
boolean
When true, disables the SpeechToTextButton and prevents user interaction.
Sets the background and border styles of the SpeechToTextButton.
Specifies which speech recognition engine or integration the component should use. Allows the component to operate in different environments or use alternative implementations.
interimResults?
boolean
Specifies whether the component should return interim results or not. Interim results are results that are not yet final.
lang?
string
Specifies a BCP 47 language tag (e.g., 'en-US', 'bg-BG') used for speech recognition.
maxAlternatives?
number
Represents the maximum number of alternative transcriptions to return for each result.
Sets the border radius of the SpeechToTextButton.
Sets the padding of the SpeechToTextButton.
Sets a predefined theme color for the SpeechToTextButton. The theme color applies as a background and border color and adjusts the text color.