New to Kendo UI for AngularStart a free 30-day trial

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:

html
<button kendoSpeechToTextButton></button>

Inputs

continuous

boolean

Specifies whether continuous results are returned for each recognition, or only a single result once recognition stops.

Default:

false

disabled

boolean

When true, disables the SpeechToTextButton and prevents user interaction.

Default:

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.

Default:

'webSpeech'

Specifies whether interim results should be returned or not. Interim results are results that are not yet final.

Default:

false

lang

string

Specifies a BCP 47 language tag (e.g., 'en-US', 'bg-BG') used for speech recognition.

Default:

'en-US'

Represents the maximum number of alternative transcriptions to return for each result.

Default:

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

Indicates whether the button is actively listening for incoming audio.

Default:

false

Indicates whether web speech functionality is supported.

Events

Fires when the user clicks the SpeechToTextButton.

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.

Fires when the speech recognition service has begun listening to incoming audio.

Methods

Removes focus from the SpeechToTextButton component.

Focuses the SpeechToTextButton component.