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 to this section

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 to this section

Gets or sets the button style.

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

ChangeLink to this section

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 to this section

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 to this section

Gets or sets the icon color.

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

LanguageLink to this section

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 to this section

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 to this section

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 to this section

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 to this section

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

GetComponentCssClassLink to this section

Declaration
protected override string GetComponentCssClass()
Returns
Type Description
string

OnAfterRenderLink to this section

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

OnResultLink to this section

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 to this section

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 🗙