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

Kendo UI speechToText TagHelper InlineAIPromptSpeechToTextSettingsTagHelper class.

Definition

Namespace:Kendo.Mvc.TagHelpers

Assembly:Kendo.Mvc.dll

Syntax:

C#
[HtmlTargetElement("speech-to-text", ParentTag = "kendo-inlineaiprompt", TagStructure = TagStructure.WithoutEndTag)]
[SuppressTagRendering]
public class InlineAIPromptSpeechToTextSettingsTagHelper : TagHelperChildBase, ITagHelper, ITagHelperComponent

Inheritance: objectTagHelperTagHelperChildBaseInlineAIPromptSpeechToTextSettingsTagHelper

Implements: ITagHelperITagHelperComponent

Inherited Members TagHelperChildBase.Init(TagHelperContext)TagHelperChildBase.AddSelfToContext(TagHelperContext)TagHelperChildBase.CreateHandler(string)TagHelperChildBase.IdPrefixTagHelper.Process(TagHelperContext, TagHelperOutput)TagHelper.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-inlineaiprompt name="inlineAIPrompt">
    <speech-to-text continuous="true" />
</kendo-inlineaiprompt>

Constructors

C#
public InlineAIPromptSpeechToTextSettingsTagHelper()

Properties

Specifies whether to continue listening after a result is received.

C#
public bool? Continuous { get; set; }

Enables or disables the configuration.

C#
public bool? Enabled { get; set; }

Specifies the integration mode for speech recognition. Available modes: - "webSpeech" - Uses the Web Speech API - "none" - Provides button without actual speech recognition

C#
public string IntegrationMode { get; set; }

Specifies whether to return interim results during speech recognition.

C#
public bool? InterimResults { get; set; }

Specifies the language code for speech recognition.

C#
public string Lang { get; set; }

Specifies the maximum number of alternatives to return from speech recognition.

C#
public double? MaxAlternatives { get; set; }

Methods

Adds the current instance to the parent TagHelper, if applicable.

C#
protected override void AddSelfToParent(TagHelperContext context)
Parameters:contextTagHelperContext

Overrides: TagHelperChildBase.AddSelfToParent(TagHelperContext)

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

Task

Overrides: TagHelperChildBase.ProcessAsync(TagHelperContext, TagHelperOutput)

Serializes the Inline AI Prompt Speech to Text settings.

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

Dictionary<string, object>