SpeechToTextButton
Kendo UI SpeechToTextButton component
Definition
Namespace:Kendo.Mvc.UI
Assembly:Kendo.Mvc.dll
Syntax:
public class SpeechToTextButton : WidgetBase, IWidget, IHtmlAttributesContainer, IScriptableComponent
Inheritance: objectWidgetBaseSpeechToTextButton
Implements:
Inherited Members
Constructors
Initializes a new instance of the SpeechToTextButton class.
public SpeechToTextButton(ViewContext viewContext, IJavaScriptInitializer initializer, IUrlGenerator urlGenerator)
The view context
initializerIJavaScriptInitializerThe JavaScriptInitializer
urlGeneratorIUrlGeneratorThe URL generator.
Properties
Controls whether continuous results are returned for each recognition, or only a single result once recognition stops.
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.
public bool? Enable { get; set; }
Sets a value controlling how the color is applied.
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).
public string Icon { get; set; }
Specifies which speech recognition engine or integration the component should use.
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.
public bool? InterimResults { get; set; }
Specifies a BCP 47 language tag (e.g., 'en-US', 'fr-FR') used for speech recognition.
public string Lang { get; set; }
Represents the maximum number of alternative transcriptions to return for each result.
public double? MaxAlternatives { get; set; }
Allows customization of the messages displayed by the widget.
public SpeechToTextButtonMessagesSettings Messages { get; set; }
Sets the size of the component.
public ComponentSize? Size { get; set; }
The name of the Kendo UI font icon to be displayed in the button when it is active (listening).
public string StopIcon { get; set; }
Sets the color of the component according to the applied theme.
public ThemeColor? ThemeColor { get; set; }
Methods
public override IDictionary<string, object> Serialize()
Overrides:
Writes the HTML.
protected override void WriteHtml(HtmlTextWriter writer)
The HtmlTextWriter.
Overrides:
Writes the initialization script.
public override void WriteInitializationScript(TextWriter writer)
The TextWriter.
Overrides: