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

Kendo UI SpeechToTextButton TagHelper SpeechToTextButtonTagHelper class.

Definition

Namespace:Kendo.Mvc.TagHelpers

Assembly:Kendo.Mvc.dll

Syntax:

C#
[HtmlTargetElement("kendo-speechtotextbutton")]
[RestrictChildren("messages", new string[] { "icon", "stop-icon" })]
public class SpeechToTextButtonTagHelper : TagHelperBase, ITagHelper, ITagHelperComponent

Inheritance: objectTagHelperTagHelperBaseSpeechToTextButtonTagHelper

Implements: ITagHelperITagHelperComponent

Inherited Members TagHelperBase.MinimumValidatorTagHelperBase.MaximumValidatorTagHelperBase.Init(TagHelperContext)TagHelperBase.Process(TagHelperContext, TagHelperOutput)TagHelperBase.GetInitializator()TagHelperBase.VerifySettings()TagHelperBase.SerializeTemplates()TagHelperBase.GenerateId(TagHelperOutput)TagHelperBase.CreateHandler(string)TagHelperBase.GetRangeValidationParameter<TValue>(ModelExplorer, string)TagHelperBase.ExtractEditFormat(string)TagHelperBase.ToDictionaryHandler(IDictionary<string, string>)TagHelperBase.AddSelfToTemplate(TagHelperContext)TagHelperBase.ViewContextTagHelperBase.GeneratorTagHelperBase.InitializerTagHelperBase.WriterTagHelperBase.ScriptAttributesTagHelperBase.NameTagHelperBase.IdTagHelperBase.SelectorTagHelperBase.IdPrefixTagHelperBase.IsInClientTemplateTagHelperBase.DeferredTagHelperBase.AsModuleTagHelper.Orderobject.GetType()object.MemberwiseClone()object.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()...

Example:

csharp
@addTagHelper *, Kendo.Mvc

<kendo-speechtotextbutton name="speechtotextbutton" continuous="true"></kendo-speechtotextbutton>

Constructors

The constructor for creating a SpeechToTextButtonTagHelper instance.

C#
public SpeechToTextButtonTagHelper(IKendoHtmlGenerator generator)
Parameters:generatorIKendoHtmlGenerator

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).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.

C#
[HtmlAttributeName("icon")]
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; }

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.

C#
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.

C#
public string OnEnd { get; set; }

The name of the JavaScript function that will handle the error event. Fires when a speech recognition error occurs.

C#
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.

C#
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.

C#
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.

C#
public string OnStart { 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).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.

C#
[HtmlAttributeName("stop-icon")]
public string StopIcon { get; set; }

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

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

Methods

Gets the initialization script of the SpeechToTextButtonTagHelper

C#
protected override string GetInitializationScript()
Returns:

string

Overrides: TagHelperBase.GetInitializationScript()

C#
public override Task ProcessAsync(TagHelperContext context, TagHelperOutput output)
Parameters:contextTagHelperContextoutputTagHelperOutputReturns:

Task

Overrides: TagHelper.ProcessAsync(TagHelperContext, TagHelperOutput)

Serializes the applied SpeechToTextButtonTagHelper settings.

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

IDictionary<string, object>

Overrides: TagHelperBase.Serialize()

SerializeEvents method.

C#
protected override Dictionary<string, object> SerializeEvents()
Returns:

Dictionary<string, object>

Overrides: TagHelperBase.SerializeEvents()

SerializeSettings method.

C#
protected override Dictionary<string, object> SerializeSettings()
Returns:

Dictionary<string, object>

Overrides: TagHelperBase.SerializeSettings()

Write the underlying markup to the TagHelperOutput stream.

C#
protected override void WriteHtml(TagHelperOutput output)
Parameters:outputTagHelperOutput

Overrides: TagHelperBase.WriteHtml(TagHelperOutput)