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

Represents the WebForms SpeechToTextButton control, which provides a button for speech recognition functionality.

Definition

Namespace:Telerik.Web.UI

Assembly:Telerik.Web.UI.dll

Syntax:

C#
[RequiredScript(typeof(jQueryPlugins), 1)]
[RequiredScript(typeof(Html5SpeechToTextButton), 2)]
[ClientScriptResource("Telerik.Web.UI.RadSpeechToTextButton", "Telerik.Web.UI.SpeechToTextButton.Scripts.RadSpeechToTextButton.kendo.js", LoadOrder = 3)]
[ClientScriptResource("Telerik.Web.UI.RadSpeechToTextButton", "Telerik.Web.UI.SpeechToTextButton.Scripts.RadSpeechToTextButton.js", LoadOrder = 4)]
[ToolboxBitmap(typeof(RadSpeechToTextButton), "Toolbox.Icons.SpeechToText.png")]
[EmbeddedSkin("SpeechToTextButton", typeof(RadSpeechToTextButton))]
[EmbeddedSkin("SpeechToTextButton", "Default", typeof(RadSpeechToTextButton))]
public class RadSpeechToTextButton : RadWebControl, IComponent, IDisposable, IParserAccessor, IUrlResolutionService, IDataBindingsAccessor, IControlBuilderAccessor, IControlDesignerAccessor, IExpressionsAccessor, IAttributeAccessor, IScriptControl, IControlResolver, IPostBackDataHandler, ISkinnableControl, IControl

Inheritance: objectControlWebControlRadWebControlRadSpeechToTextButton

Implements: IAttributeAccessorIComponentIControlIControlBuilderAccessorIControlDesignerAccessorIControlResolverIDataBindingsAccessorIDisposableIExpressionsAccessorIParserAccessorIPostBackDataHandlerIScriptControlISkinnableControlIUrlResolutionService...

Inherited Members WebControl.AddAttributesToRender(HtmlTextWriter)WebControl.ApplyStyle(Style)WebControl.CopyBaseAttributes(WebControl)WebControl.CreateControlStyle()WebControl.MergeStyle(Style)WebControl.Render(HtmlTextWriter)WebControl.RenderBeginTag(HtmlTextWriter)WebControl.RenderEndTag(HtmlTextWriter)WebControl.RenderContents(HtmlTextWriter)WebControl.AccessKeyWebControl.AttributesWebControl.BackColorWebControl.BorderColorWebControl.BorderWidthWebControl.BorderStyleWebControl.ControlStyleWebControl.ControlStyleCreatedWebControl.CssClassWebControl.DisabledCssClassWebControl.StyleWebControl.EnabledWebControl.EnableThemingWebControl.FontWebControl.ForeColorWebControl.HasAttributesWebControl.HeightWebControl.IsEnabledWebControl.SupportsDisabledAttributeWebControl.SkinIDWebControl.TabIndexWebControl.TagNameWebControl.ToolTipWebControl.WidthControl.ResolveAdapter()Control.HasEvents()Control.GetRouteUrl(object)Control.GetRouteUrl(string, object)Control.GetRouteUrl(RouteValueDictionary)Control.GetRouteUrl(string, RouteValueDictionary)Control.GetUniqueIDRelativeTo(Control)Control.ApplyStyleSheetSkin(Page)Control.OnDataBinding(EventArgs)Control.DataBind()Control.DataBind(bool)Control.DataBindChildren()Control.AddParsedSubObject(object)Control.EnsureID()Control.OnInit(EventArgs)Control.ClearChildState()Control.ClearChildControlState()Control.ClearChildViewState()Control.ClearEffectiveClientIDMode()Control.ClearCachedClientID()Control.Focus()Control.LoadControlState(object)Control.MapPathSecure(string)Control.OpenFile(string)Control.OnLoad(EventArgs)Control.BuildProfileTree(string, bool)Control.SaveControlState()Control.RenderChildren(HtmlTextWriter)Control.RenderControl(HtmlTextWriter)Control.RenderControl(HtmlTextWriter, ControlAdapter)Control.OnUnload(EventArgs)Control.Dispose()Control.RaiseBubbleEvent(object, EventArgs)Control.OnBubbleEvent(object, EventArgs)Control.AddedControl(Control, int)Control.CreateControlCollection()Control.CreateChildControls()Control.ResolveUrl(string)Control.ResolveClientUrl(string)Control.FindControl(string)Control.FindControl(string, int)Control.GetDesignModeState()Control.HasControls()Control.IsLiteralContent()Control.EnsureChildControls()Control.RemovedControl(Control)Control.SetDesignModeState(IDictionary)Control.SetRenderMethodDelegate(RenderMethod)Control.ClientIDModeControl.ClientIDControl.ClientIDSeparatorControl.ContextControl.AdapterControl.DesignModeControl.EventsControl.IDControl.IsChildControlStateClearedControl.EnableViewStateControl.ViewStateModeControl.IsViewStateEnabledControl.NamingContainerControl.IdSeparatorControl.LoadViewStateByIDControl.PageControl.RenderingCompatibilityControl.TemplateControlControl.ParentControl.TemplateSourceDirectoryControl.AppRelativeTemplateSourceDirectoryControl.SiteControl.VisibleControl.UniqueIDControl.HasChildViewStateControl.ControlsControl.ValidateRequestModeControl.ViewStateControl.ViewStateIgnoresCaseControl.ChildControlsCreatedControl.IsTrackingViewStateControl.DisposedControl.DataBindingControl.InitControl.LoadControl.PreRenderControl.Unloadobject.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()object.GetType()object.MemberwiseClone()...

Constructors

C#
public RadSpeechToTextButton()

Properties

Defines the client events handlers.

C#
[PersistenceMode(PersistenceMode.InnerProperty)]
public SpeechToTextButtonClientEvents ClientEvents { get; }

Controls whether continuous results are returned for each recognition, or only a single result once recognition stops.

C#
public bool Continuous { get; set; }

The CssClass property will now be used instead of the former Skin and will be modified in AddAttributesToRender()

C#
protected override string CssClassFormatString { get; }

Overrides: RadWebControl.CssClassFormatString

Example:
C#
protected override string CssClassFormatString
{
       get
       {
           return "RadDock RadDock_{0} rdWTitle rdWFooter";
       }
}

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; }

Specifies how themeColor is applied to a badge. Valid options are solid (default) and outline.

C#
public SpeechToTextButtonFillMode FillMode { get; set; }

The name of the Kendo UI font icon to be displayed in the button when it is not active (not listening).

C#
public string Icon { get; set; }

Specifies which speech recognition engine or integration the component should use. - webSpeech - Utilizes the browser's native Web Speech API. - none - Disables the built-in speech recognition. Use this when integrating with a custom or third-party speech recognition service.

C#
public SpeechToTextButtonIntegrationMode 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 Language { get; set; }

Represents the maximum number of alternative transcriptions to return for each result.

C#
public double MaxAlternatives { get; set; }

Allows customization of the messages displayed by the widget.

C#
[PersistenceMode(PersistenceMode.InnerProperty)]
public Messages Messages { get; }

Specifies how round is the button. Valid options are small, medium, large and full.

C#
public SpeechToTextButtonRounded Rounded { get; set; }

Specifies the size of the badge. Valid options are small, medium and large.

C#
public SpeechToTextButtonSize Size { get; set; }

The name of the Kendo UI font icon to be displayed in the button when it is active (listening).

C#
public string StopIcon { get; set; }
C#
protected override bool SupportsRenderingMode { get; }

Overrides: RadWebControl.SupportsRenderingMode

C#
protected override HtmlTextWriterTag TagKey { get; }

Overrides: WebControl.TagKey

Specifies the theme color of the component.

C#
public SpeechToTextButtonThemeColor ThemeColor { get; set; }

Methods

C#
protected override void DescribeClientEvents(IScriptDescriptor descriptor)
Parameters:descriptorIScriptDescriptor

Overrides: RadWebControl.DescribeClientEvents(IScriptDescriptor)

C#
protected override void DescribeComponent(IScriptDescriptor descriptor)
Parameters:descriptorIScriptDescriptor

Overrides: RadWebControl.DescribeComponent(IScriptDescriptor)

C#
protected override void LoadViewState(object state)
Parameters:stateobject

Overrides: WebControl.LoadViewState(object)

C#
protected override void OnPreRender(EventArgs e)
Parameters:eEventArgs

Overrides: RadWebControl.OnPreRender(EventArgs)

C#
protected override object SaveViewState()
Returns:

object

Overrides: WebControl.SaveViewState()

C#
protected override void TrackViewState()

Overrides: WebControl.TrackViewState()