Kendo UI SpeechToTextButton TagHelper SpeechToTextButtonTagHelper class.
Definition
Namespace:Kendo.Mvc.TagHelpers
Assembly:Kendo.Mvc.dll
Syntax:
[HtmlTargetElement("kendo-speechtotextbutton")]
[RestrictChildren("messages", new string[] { "icon", "stop-icon" })]
public class SpeechToTextButtonTagHelper : TagHelperBase, ITagHelper, ITagHelperComponent
Inheritance: objectTagHelperTagHelperBaseSpeechToTextButtonTagHelper
Implements:
Inherited Members
Example:
@addTagHelper *, Kendo.Mvc
<kendo-speechtotextbutton name="speechtotextbutton" continuous="true"></kendo-speechtotextbutton>
Child Tags
Constructors
The constructor for creating a SpeechToTextButtonTagHelper instance.
public SpeechToTextButtonTagHelper(IKendoHtmlGenerator 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).Set this option to an icon descriptor such as { name: "gear", variant: "outline" }. The variant can be outline, solid, or duotone; it applies to SVG rendering and is ignored for font icons.
[HtmlAttributeName("icon")]
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; }
The name of the JavaScript function that will handle the click event. Fires when the Button is clicked with the mouse, touched on a touch device, or ENTER (or SPACE) is pressed while the Button is focused.
public string OnClick { get; set; }
The name of the JavaScript function that will handle the end event. Fires when the speech recognition service has disconnected.
public string OnEnd { get; set; }
The name of the JavaScript function that will handle the error event. Fires when a speech recognition error occurs.
public string OnError { get; set; }
The name of the JavaScript function that will handle the kendoKeydown event. Triggered when the user presses a keyboard key while the Button is focused.The event handler function context (available via the this keyword) will be set to the widget instance.
public string OnKendoKeydown { get; set; }
The name of the JavaScript function that will handle the result event. Fires when the speech recognition service returns a result - a word or phrase has been positively recognized.
public string OnResult { get; set; }
The name of the JavaScript function that will handle the start event. Fires when the speech recognition service has begun listening to incoming audio.
public string OnStart { 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).Set this option to an icon descriptor such as { name: "gear", variant: "outline" }. The variant can be outline, solid, or duotone; it applies to SVG rendering and is ignored for font icons.
[HtmlAttributeName("stop-icon")]
public string StopIcon { get; set; }
Sets the color of the component according to the applied theme.
public ThemeColor? ThemeColor { get; set; }
Methods
Gets the initialization script of the SpeechToTextButtonTagHelper
public override Task ProcessAsync(TagHelperContext context, TagHelperOutput output)
Overrides:
Serializes the applied SpeechToTextButtonTagHelper settings.
public override IDictionary<string, object> Serialize()
Overrides:
SerializeEvents method.
protected override Dictionary<string, object> SerializeEvents()
Overrides:
SerializeSettings method.
protected override Dictionary<string, object> SerializeSettings()
Overrides:
Write the underlying markup to the TagHelperOutput stream.
protected override void WriteHtml(TagHelperOutput output)
Overrides: