Kendo UI speechToText TagHelper AIPromptSpeechToTextSettingsTagHelper class.
Definition
Namespace:Kendo.Mvc.TagHelpers
Assembly:Kendo.Mvc.dll
Syntax:
[HtmlTargetElement("speech-to-text", ParentTag = "kendo-aiprompt", TagStructure = TagStructure.WithoutEndTag)]
[HtmlTargetElement("speech-to-text", ParentTag = "ai-assistant", TagStructure = TagStructure.WithoutEndTag)]
[SuppressTagRendering]
public class AIPromptSpeechToTextSettingsTagHelper : TagHelperChildBase, ITagHelper, ITagHelperComponent
Inheritance: objectTagHelperTagHelperChildBaseAIPromptSpeechToTextSettingsTagHelper
Implements:
Inherited Members
Example:
@addTagHelper *, Kendo.Mvc
<kendo-aiprompt name="aiprompt">
<speech-to-text continuous="true" />
</kendo-aiprompt>
Constructors
Initializes a new instance of the AIPromptSpeechToTextSettingsTagHelper class.
public AIPromptSpeechToTextSettingsTagHelper()
Properties
Specifies whether to continue listening after a result is received.
public bool? Continuous { get; set; }
Specifies the integration mode for speech recognition. Available modes: - "webSpeech" - Uses the Web Speech API - "none" - Provides button without actual speech recognition
public string IntegrationMode { get; set; }
Specifies whether to return interim results during speech recognition.
public bool? InterimResults { get; set; }
Specifies the maximum number of alternatives to return from speech recognition.
public double? MaxAlternatives { get; set; }
Methods
Adds the current TagHelper instance to its parent TagHelper.
protected override void AddSelfToParent(TagHelperContext context)
The TagHelper context.
Overrides:
ProcessAsync method.
public override Task ProcessAsync(TagHelperContext context, TagHelperOutput output)
Overrides:
Serialize method.