New to Telerik UI for ASP.NET MVC? Start a free 30-day trial

Kendo UI SpeechToTextButton component

Definition

Constructors

Initializes a new instance of the SpeechToTextButton class.

C#
public SpeechToTextButton(ViewContext viewContext, IJavaScriptInitializer initializer, IUrlGenerator urlGenerator)
Parameters:viewContextViewContext

The view context

initializerIJavaScriptInitializer

The JavaScriptInitializer

urlGeneratorIUrlGenerator

The URL generator.

Properties

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

C#
public bool? Continuous { get; set; }

Indicates whether the button must be enabled or disabled. By default, it is enabled, unless a disabled="disabled" attribute is detected.

C#
public bool? Enable { get; set; }

Sets a value controlling how the color is applied.

C#
public ButtonFillMode? FillMode { get; set; }

The name of the Kendo UI font icon to be displayed in the button when it is not active (not listening).

C#
public string Icon { get; set; }

Specifies which speech recognition engine or integration the component should use.

C#
public IntegrationMode? IntegrationMode { get; set; }

Controls whether interim results should be returned (true) or not (false). Interim results are results that are not yet final.

C#
public bool? InterimResults { get; set; }

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

C#
public string Lang { get; set; }

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

C#
public double? MaxAlternatives { get; set; }

Allows customization of the messages displayed by the widget.

C#
public SpeechToTextButtonMessagesSettings Messages { get; set; }

Sets a value controlling the border radius.

C#
public Rounded? Rounded { get; set; }

Sets the size of the component.

C#
public ComponentSize? Size { get; set; }

The name of the Kendo UI font icon to be displayed in the button when it is active (listening).

C#
public string StopIcon { get; set; }

Sets the color of the component according to the applied theme.

C#
public ThemeColor? ThemeColor { get; set; }

Methods

C#
public override IDictionary<string, object> Serialize()
Returns:

IDictionary<string, object>

Overrides: WidgetBase.Serialize()

Writes the HTML.

C#
protected override void WriteHtml(HtmlTextWriter writer)
Parameters:writerHtmlTextWriter

The HtmlTextWriter.

Overrides: WidgetBase.WriteHtml(HtmlTextWriter)

Writes the initialization script.

C#
public override void WriteInitializationScript(TextWriter writer)
Parameters:writerTextWriter

The TextWriter.

Overrides: WidgetBase.WriteInitializationScript(TextWriter)