Kendo UI speechToTextButton TagHelper GridSmartBoxAiAssistantSettingsSpeechToTextButtonSettingsTagHelper class.
Definition
Namespace:Kendo.Mvc.TagHelpers
Assembly:Kendo.Mvc.dll
Syntax:
[HtmlTargetElement("speech-to-text-button", ParentTag = "ai-assistant-settings", TagStructure = TagStructure.WithoutEndTag)]
[SuppressTagRendering]
public class GridSmartBoxAiAssistantSettingsSpeechToTextButtonSettingsTagHelper : TagHelperChildBase, ITagHelper, ITagHelperComponent
Inheritance: objectTagHelperTagHelperChildBaseGridSmartBoxAiAssistantSettingsSpeechToTextButtonSettingsTagHelper
Implements:
Inherited Members
Example:
@addTagHelper *, Kendo.Mvc
<kendo-grid name="grid">
<smart-box>
<ai-assistant-settings>
<speech-to-text-button continuous="true" />
</ai-assistant-settings>
</smart-box>
</kendo-grid>
Constructors
Initializes a new instance of the GridSmartBoxAiAssistantSettingsSpeechToTextButtonSettingsTagHelper class.
public GridSmartBoxAiAssistantSettingsSpeechToTextButtonSettingsTagHelper()
Properties
Specifies whether to continue listening after a result is received. When true, the speech recognition continues until explicitly stopped. When false, recognition stops after the first result.
public bool? Continuous { get; set; }
Specifies the integration mode for speech recognition. Available modes: - "webSpeech" - Uses the Web Speech API for browser-based speech recognition. - "none" - Provides the microphone button without actual speech recognition, useful when handling speech input manually.
public string IntegrationMode { get; set; }
Specifies whether to return interim results during speech recognition. When true, partial transcriptions are displayed as the user speaks, providing real-time feedback.
public bool? InterimResults { get; set; }
Specifies the language code for speech recognition. Uses BCP-47 language tags (e.g., "en-US", "es-ES", "fr-FR", "de-DE").
public string Lang { get; set; }
Specifies the maximum number of alternative transcriptions to return from speech recognition. Higher values provide more options but may increase processing overhead.
public double? MaxAlternatives { 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.