SpeechToTextButtonComponent
Represents the Kendo UI SpeechToTextButton component for Angular.
<button kendoSpeechToTextButton></button>
Selector
button[kendoSpeechToTextButton]
Export Name
Accessible in templates as #kendoSpeechToTextButtonInstance="kendoSpeechToTextButton"
Inputs
Name | Type | Default | Description |
---|---|---|---|
continuous |
|
|
Specifies whether continuous results are returned for each recognition, or only a single result once recognition stops. |
disabled |
|
|
When |
fillMode |
|
|
Sets the background and border styles of the SpeechToTextButton. |
integrationMode |
|
Specifies which speech recognition engine or integration the component should use. Allows the component to operate in different environments or use alternative implementations. | |
interimResults |
|
|
Specifies whether interim results should be returned or not. Interim results are results that are not yet final. |
lang |
|
|
Specifies a |
maxAlternatives |
|
|
Represents the maximum number of alternative transcriptions to return for each result. |
rounded |
|
|
Sets the border radius of the SpeechToTextButton. |
size |
|
|
Sets the padding of the SpeechToTextButton. |
themeColor |
|
|
Sets a predefined theme color for the SpeechToTextButton. The theme color applies as a background and border color and adjusts the text color. |
Fields
Name | Type | Default | Description |
---|---|---|---|
isListening |
|
Indicates whether the button is actively listening for incoming audio. | |
isWebSpeechSupported |
|
Indicates whether web speech functionality is supported. |
Events
Name | Type | Description |
---|---|---|
click |
|
Fires when the user clicks the SpeechToTextButton. |
end |
|
Fires when the speech recognition service has disconnected. |
error |
|
Fires when a speech recognition error occurs. The event argument is a string, containing the error message. |
result |
|
Fires when the speech recognition service returns a result - a word or phrase has been positively recognized. |
start |
|
Fires when the speech recognition service has begun listening to incoming audio. |
Methods
blur |
---|
Removes focus from the SpeechToTextButton component. |
focus |
---|
Focuses the SpeechToTextButton component. |