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}")) />
Implements
Inherited Members
Namespace: Radzen.Blazor
Assembly: Radzen.Blazor.dll
Syntax
public class RadzenSpeechToTextButton : RadzenComponent, IDisposable
Properties
ButtonStyle
Gets or sets the button style.
Declaration
public ButtonStyle ButtonStyle { get; set; }
Property Value
Type | Description |
---|---|
ButtonStyle | The button style. |
Change
Callback which provides results from the speech recognition API.
Declaration
public EventCallback<string> Change { get; set; }
Property Value
Type | Description |
---|---|
EventCallback<System.String> |
Icon
Gets or sets the icon displayed while not recording.
Declaration
public string Icon { get; set; }
Property Value
Type | Description |
---|---|
System.String | The icon. |
IconColor
Gets or sets the icon color.
Declaration
public string IconColor { get; set; }
Property Value
Type | Description |
---|---|
System.String | The icon color. |
Language
Gets or sets the icon displayed while recording.
Declaration
public string Language { get; set; }
Property Value
Type | Description |
---|---|
System.String | The icon. |
StopIcon
Gets or sets the icon displayed while recording.
Declaration
public string StopIcon { get; set; }
Property Value
Type | Description |
---|---|
System.String | The icon. |
StopTitle
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 |
---|---|
System.String | The message. |
Title
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 |
---|---|
System.String | The message. |
Methods
GetComponentCssClass()
Gets the component CSS class.
Declaration
protected override string GetComponentCssClass()
Returns
Type | Description |
---|---|
System.String |
Overrides
OnAfterRender(Boolean)
Declaration
protected override void OnAfterRender(bool firstRender)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | firstRender |
OnResult(String)
Provides interface for javascript to pass speech results back to this component.
Declaration
public void OnResult(string result)
Parameters
Type | Name | Description |
---|---|---|
System.String | result |
StopRecording()
Provides interface for javascript to stop speech to text recording on this component if another component starts recording.
Declaration
public void StopRecording()