SpeechToTextButtonComponent
Represents the Kendo UI SpeechToTextButton component for Angular.
Definition
Package:@progress/kendo-angular-buttons
Selector:button[kendoSpeechToTextButton]
Export Name:Accessible in templates as #kendoSpeechToTextButtonInstance="kendoSpeechToTextButton"
Syntax:
<button kendoSpeechToTextButton></button>
Inputs
continuous
boolean
Specifies whether continuous results are returned for each recognition, or only a single result once recognition stops.
false
disabled
boolean
When true, disables the SpeechToTextButton and prevents user interaction.
false
Sets the background and border styles of the SpeechToTextButton. The default value is set by the Kendo theme.
Specifies which speech recognition engine or integration the component should use. Allows the component to operate in different environments or use alternative implementations.
'webSpeech'
interimResults
boolean
Specifies whether interim results should be returned or not. Interim results are results that are not yet final.
false
lang
string
Specifies a BCP 47 language tag (e.g., 'en-US', 'bg-BG') used for speech recognition.
'en-US'
maxAlternatives
number
Represents the maximum number of alternative transcriptions to return for each result.
1
Sets the border radius of the SpeechToTextButton. The default value is set by the Kendo theme.
Sets the padding of the SpeechToTextButton. The default value is set by the Kendo theme.
Sets a predefined theme color for the SpeechToTextButton. The default value is set by the Kendo theme. The theme color applies as a background and border color and adjusts the text color for contrast.
Fields
isListening
boolean
Indicates whether the button is actively listening for incoming audio.
false
isWebSpeechSupported
boolean
Indicates whether web speech functionality is supported.
Events
click
EventEmitter<any>
Fires when the user clicks the SpeechToTextButton.
end
EventEmitter<any>
Fires when the speech recognition service has disconnected.
Fires when a speech recognition error occurs. The event argument is a string, containing the error message.
Fires when the speech recognition service returns a result - a word or phrase has been positively recognized.
start
EventEmitter<any>
Fires when the speech recognition service has begun listening to incoming audio.