Demos About Radzen
Search Results for

    Show / Hide Table of Contents

    Class RadzenSpeechToTextButton

    RadzenSpeechToTextButton component. Enables speech to text functionality.

    This is only supported on select browsers. See https://caniuse.com/?search=SpeechRecognition

    <RadzenSpeechToTextButton Change=@(args => Console.WriteLine($"Value: {args}")) />
    Inheritance
    object
    ComponentBase
    RadzenComponent
    RadzenSpeechToTextButton
    Implements
    IComponent
    IHandleEvent
    IHandleAfterRender
    IDisposable
    Inherited Members
    RadzenComponent.OnMouseEnter()
    RadzenComponent.OnMouseLeave()
    RadzenComponent.OnContextMenu(MouseEventArgs)
    RadzenComponent.GetCssClass()
    RadzenComponent.GetId()
    RadzenComponent.Debounce(Func<Task>, int)
    RadzenComponent.OnInitialized()
    RadzenComponent.SetParametersAsync(ParameterView)
    RadzenComponent.OnAfterRenderAsync(bool)
    RadzenComponent.RaiseContextMenu(MouseEventArgs)
    RadzenComponent.RaiseMouseEnter()
    RadzenComponent.RaiseMouseLeave()
    RadzenComponent.Dispose()
    RadzenComponent.Attributes
    RadzenComponent.Element
    RadzenComponent.MouseEnter
    RadzenComponent.MouseLeave
    RadzenComponent.ContextMenu
    RadzenComponent.Culture
    RadzenComponent.DefaultCulture
    RadzenComponent.Style
    RadzenComponent.Visible
    RadzenComponent.UniqueID
    RadzenComponent.JSRuntime
    RadzenComponent.IsJSRuntimeAvailable
    RadzenComponent.Reference
    RadzenComponent.CurrentStyle
    ComponentBase.OnInitializedAsync()
    ComponentBase.OnParametersSet()
    ComponentBase.OnParametersSetAsync()
    ComponentBase.StateHasChanged()
    ComponentBase.ShouldRender()
    ComponentBase.InvokeAsync(Action)
    ComponentBase.InvokeAsync(Func<Task>)
    ComponentBase.DispatchExceptionAsync(Exception)
    object.GetType()
    object.MemberwiseClone()
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    Namespace: Radzen.Blazor
    Assembly: Radzen.Blazor.dll
    Syntax
    public class RadzenSpeechToTextButton : RadzenComponent, IComponent, IHandleEvent, IHandleAfterRender, IDisposable

    Constructors

    RadzenSpeechToTextButton()

    RadzenSpeechToTextButton component. Enables speech to text functionality.

    This is only supported on select browsers. See https://caniuse.com/?search=SpeechRecognition

    <RadzenSpeechToTextButton Change=@(args => Console.WriteLine($"Value: {args}")) />
    Declaration
    public RadzenSpeechToTextButton()

    Properties

    ButtonStyle

    Gets or sets the button style.

    Declaration
    [Parameter]
    public ButtonStyle ButtonStyle { get; set; }
    Property Value
    Type Description
    ButtonStyle

    The button style.

    Change

    Callback which provides results from the speech recognition API.

    Declaration
    [Parameter]
    public EventCallback<string> Change { get; set; }
    Property Value
    Type Description
    EventCallback<string>

    Icon

    Gets or sets the icon displayed while not recording.

    Declaration
    [Parameter]
    public string Icon { get; set; }
    Property Value
    Type Description
    string

    The icon.

    IconColor

    Gets or sets the icon color.

    Declaration
    [Parameter]
    public string IconColor { get; set; }
    Property Value
    Type Description
    string

    The icon color.

    Language

    Gets or sets the icon displayed while recording.

    Declaration
    [Parameter]
    public string Language { get; set; }
    Property Value
    Type Description
    string

    The icon.

    StopIcon

    Gets or sets the icon displayed while recording.

    Declaration
    [Parameter]
    public string StopIcon { get; set; }
    Property Value
    Type Description
    string

    The icon.

    StopTitle

    Gets or sets the message displayed when user hovers the button and it is recording.

    Declaration
    [Parameter]
    public string StopTitle { get; set; }
    Property Value
    Type Description
    string

    The message.

    Title

    Gets or sets the message displayed when user hovers the button and it is not recording.

    Declaration
    [Parameter]
    public string Title { get; set; }
    Property Value
    Type Description
    string

    The message.

    Methods

    BuildRenderTree(RenderTreeBuilder)

    RadzenSpeechToTextButton component. Enables speech to text functionality.

    This is only supported on select browsers. See https://caniuse.com/?search=SpeechRecognition

    <RadzenSpeechToTextButton Change=@(args => Console.WriteLine($"Value: {args}")) />
    Declaration
    protected override void BuildRenderTree(RenderTreeBuilder __builder)
    Parameters
    Type Name Description
    RenderTreeBuilder __builder
    Overrides
    ComponentBase.BuildRenderTree(RenderTreeBuilder)

    GetComponentCssClass()

    Gets the component CSS class.

    Declaration
    protected override string GetComponentCssClass()
    Returns
    Type Description
    string
    Overrides
    RadzenComponent.GetComponentCssClass()

    OnAfterRender(bool)

    RadzenSpeechToTextButton component. Enables speech to text functionality.

    This is only supported on select browsers. See https://caniuse.com/?search=SpeechRecognition

    <RadzenSpeechToTextButton Change=@(args => Console.WriteLine($"Value: {args}")) />
    Declaration
    protected override void OnAfterRender(bool firstRender)
    Parameters
    Type Name Description
    bool firstRender
    Overrides
    ComponentBase.OnAfterRender(bool)

    OnResult(string)

    Provides interface for javascript to pass speech results back to this component.

    Declaration
    [JSInvokable]
    public void OnResult(string result)
    Parameters
    Type Name Description
    string result

    StopRecording()

    Provides interface for javascript to stop speech to text recording on this component if another component starts recording.

    Declaration
    [JSInvokable]
    public void StopRecording()

    Implements

    IComponent
    IHandleEvent
    IHandleAfterRender
    IDisposable

    Introducing Radzen Blazor Studio

    Radzen Blazor Studio is a software development environment that empowers developers to design, build and deploy Blazor applications without the traditional hurdles. Write less code and get more done.

    Learn More

    Download Now
    Download Now
    In This Article
    Back to top Radzen Blazor Components, © 2018-2025 Radzen. Source Code licensed under MIT