RadzenSpeechToTextButton Class

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

Namespace: Radzen.Blazor

Assembly: Radzen.Blazor.dll

Syntax

public class RadzenSpeechToTextButton : RadzenComponent, IComponent, IHandleEvent, IHandleAfterRender

Constructors

RadzenSpeechToTextButtonlink

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

ButtonStylelink

Gets or sets the button style.

Declaration
public ButtonStyle ButtonStyle { get; set; }
Property Value
Type Description
ButtonStyleGets or sets the button style.

Changelink

Callback which provides results from the speech recognition API.

Declaration
public EventCallback<string> Change { get; set; }
Property Value
Type Description
EventCallback<string>Callback which provides results from the speech recognition API.

Iconlink

Gets or sets the icon displayed while not recording.

Declaration
public string Icon { get; set; }
Property Value
Type Description
stringGets or sets the icon displayed while not recording.

IconColorlink

Gets or sets the icon color.

Declaration
public string IconColor { get; set; }
Property Value
Type Description
stringGets or sets the icon color.

Languagelink

Gets or sets the icon displayed while recording.

Declaration
public string Language { get; set; }
Property Value
Type Description
stringGets or sets the icon displayed while recording.

StopIconlink

Gets or sets the icon displayed while recording.

Declaration
public string StopIcon { get; set; }
Property Value
Type Description
stringGets or sets the icon displayed while recording.

StopTitlelink

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

Declaration
public string StopTitle { get; set; }
Property Value
Type Description
stringGets or sets the message displayed when user hovers the button and it is recording.

Titlelink

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

Declaration
public string Title { get; set; }
Property Value
Type Description
stringGets or sets the message displayed when user hovers the button and it is not recording.

Methods

BuildRenderTreelink

Declaration
protected override void BuildRenderTree(Rendering.RenderTreeBuilder __builder)
Parameters
Type Name Description
Rendering.RenderTreeBuilder __builder

GetComponentCssClasslink

Declaration
protected override string GetComponentCssClass()
Returns
Type Description
string

OnAfterRenderlink

Declaration
protected override void OnAfterRender(bool firstRender)
Parameters
Type Name Description
bool firstRender

OnResultlink

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

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

StopRecordinglink

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

Declaration
public void StopRecording()
An error has occurred. This app may no longer respond until reloaded. Reload 🗙