New to Telerik UI for ASP.NET AJAXStart a free 30-day trial

Properties

Updated on Oct 27, 2025

SpeechToTextButton-specific properties to configure recognition behavior, appearance (fill mode, size, rounded corners, theme color), icons, and more.

Getters

NameReturn TypeDescription
get_enabled()boolGets whether the SpeechToTextButton is enabled.
get_fillMode()Telerik.Web.UI.RadSpeechToTextButtonFillModeGets the fill mode applied to the button.
get_icon()stringGets the icon shown when the button is idle (not listening).
get_integrationMode()Telerik.Web.UI.RadSpeechToTextButtonIntegrationModeGets the speech integration mode.
get_interimResults()boolGets whether interim (partial) results are returned.
get_isContinuous()boolGets whether recognition runs in continuous mode.
get_isListening()boolGets whether the control is currently listening.
get_language()stringGets the language (BCP-47 tag) used for recognition.
get_maxAlternatives()numberGets the maximum number of alternative transcripts returned.
get_messages()ObjectGets the current messages (localizable text) configuration.
get_rounded()Telerik.Web.UI.RadSpeechToTextButtonRoundedGets the rounded (border radius) style.
get_size()Telerik.Web.UI.RadSpeechToTextButtonSizeGets the size applied to the button.
get_stopIcon()stringGets the icon shown while the button is active (listening).
get_themeColor()Telerik.Web.UI.RadSpeechToTextButtonThemeColorGets the theme color applied to the button.

Setters

NameParameterDescription
set_enabled(value)boolEnables or disables the SpeechToTextButton.
set_fillMode(value)Telerik.Web.UI.RadSpeechToTextButtonFillModeSets the fill mode of the button.
set_icon(value)stringSets the idle-state icon.
set_integrationMode(value)Telerik.Web.UI.RadSpeechToTextButtonIntegrationModeSets the speech integration mode.
set_interimResults(value)boolEnables or disables interim (partial) results.
set_isContinuous(value)boolEnables or disables continuous recognition mode.
set_language(value)stringSets the recognition language (BCP-47 tag).
set_maxAlternatives(value)numberSets the maximum number of alternative transcripts to return.
set_messages(value)ObjectMerges and sets the messages (localizable text) configuration.
set_rounded(value)Telerik.Web.UI.RadSpeechToTextButtonRoundedSets the rounded (border radius) style.
set_size(value)Telerik.Web.UI.RadSpeechToTextButtonSizeSets the size of the button.
set_stopIcon(value)stringSets the active (listening) icon.
set_themeColor(value)Telerik.Web.UI.RadSpeechToTextButtonThemeColorSets the theme color of the button.

Methods

NameDescription
abortRecognition()Aborts the current recognition session immediately.
startRecognition()Starts a speech recognition session.
stopRecognition()Stops recognition and finalizes any partial input.
destroy()Destroys the SpeechToTextButton widget instance.

Set Messages

set_messages() expects a Messages objct to be passed to it.

JavaScript
function pageLoadHandler(sender, args) {
    let speechToTextButton = $find('<%= RadSpeechToTextButton1.ClientID %>');

    let newMessages = {
        start: "Start speech recognition",
        stop: "Stop speech recognition",
        unsupported: "Speech recognition is not supported in this browser.",
        notInitialized: "Speech recognition is not initialized."
    };

    speechToTextButton.set_messages(newMessages);
}

Sys.Application.add_load(pageLoadHandler);

Next Steps