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

SpeechToTextButtonComponent

Represents the Kendo UI SpeechToTextButton component for Angular.

html
<button kendoSpeechToTextButton></button>

Selector

button[kendoSpeechToTextButton]

Export Name

Accessible in templates as #kendoSpeechToTextButtonInstance="kendoSpeechToTextButton"

Inputs

NameTypeDefaultDescription

continuous

boolean

false

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

disabled

boolean

false

When true, disables the SpeechToTextButton and prevents user interaction.

fillMode

ButtonFillMode

'solid'

Sets the background and border styles of the SpeechToTextButton.

integrationMode

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

boolean

false

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

lang

string

'en-US'

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

maxAlternatives

number

1

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

rounded

ButtonRounded

'medium'

Sets the border radius of the SpeechToTextButton.

size

ButtonSize

'medium'

Sets the padding of the SpeechToTextButton.

themeColor

ButtonThemeColor

'base'

Sets a predefined theme color for the SpeechToTextButton. The theme color applies as a background and border color and adjusts the text color.

Fields

NameTypeDefaultDescription

isListening

boolean

Indicates whether the button is actively listening for incoming audio.

isWebSpeechSupported

boolean

Indicates whether web speech functionality is supported.

Events

NameTypeDescription

click

EventEmitter<any>

Fires when the user clicks the SpeechToTextButton.

end

EventEmitter<any>

Fires when the speech recognition service has disconnected.

error

EventEmitter<SpeechToTextErrorEvent>

Fires when a speech recognition error occurs. The event argument is a string, containing the error message.

result

EventEmitter<SpeechToTextResultEvent>

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.

Methods

blur

Removes focus from the SpeechToTextButton component.

focus

Focuses the SpeechToTextButton component.

In this article
SelectorExport NameInputsFieldsEventsMethods
Not finding the help you need?
Contact Support