Kendo UI speechToText TagHelper
Definition
Namespace:Kendo.Mvc.TagHelpers
Assembly:Kendo.Mvc.dll
Syntax:
[HtmlTargetElement("speech-to-text", ParentTag = "kendo-chat", TagStructure = TagStructure.NormalOrSelfClosing)]
[RestrictChildren("icon", new string[] { })]
[SuppressTagRendering]
public class ChatSpeechToTextSettingsTagHelper : TagHelperChildBase, ITagHelper, ITagHelperComponent
Inheritance: objectTagHelperTagHelperChildBaseChatSpeechToTextSettingsTagHelper
Implements:
Inherited Members
Example:
@addTagHelper *, Kendo.Mvc
<kendo-chat name="chat">
<speech-to-text continuous="true" />
</kendo-chat>
Child Tags
Constructors
Initializes a new instance of the ChatSpeechToTextSettingsTagHelper class.
public ChatSpeechToTextSettingsTagHelper()
Properties
Enables continuous speech recognition mode. When true, recognition continues until explicitly stopped.
public bool? Continuous { get; set; }
The fill mode for the button (e.g., "flat", "solid", "outline").
public ButtonFillMode? FillMode { get; set; }
The icon name for the speech-to-text button.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; }
Whether to return interim (partial) results during speech recognition.
public bool? InterimResults { get; set; }
The language for speech recognition (BCP 47 language tag).
public string Lang { get; set; }
Maximum number of alternative transcriptions to return.
public double? MaxAlternatives { get; set; }
The border radius for the button (e.g., "small", "medium", "large", "full").
public Rounded? Rounded { get; set; }
The size of the button (e.g., "small", "medium", "large").
public ComponentSize? Size { get; set; }
The theme color for the button (e.g., "base", "primary", "secondary").
public ThemeColor? ThemeColor { get; set; }
Methods
Adds the current instance to the parent TagHelper, if applicable.
protected override void AddSelfToParent(TagHelperContext context)
Overrides:
public override Task ProcessAsync(TagHelperContext context, TagHelperOutput output)
Overrides:
Serializes the defined settings.