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}")) />
IComponent
IHandleEvent
IHandleAfterRender
RadzenComponent.SetParametersAsync
RadzenComponent.OnAfterRenderAsync
RadzenComponent.RaiseContextMenu
RadzenComponent.RaiseMouseEnter
RadzenComponent.AddContextMenu
RadzenComponent.RaiseMouseLeave
RadzenComponent.OnBecameInvisible
RadzenComponent.DefaultCulture
RadzenComponent.IsJSRuntimeAvailable
ComponentBase.OnInitializedAsync
ComponentBase.OnParametersSet
ComponentBase.OnParametersSetAsync
ComponentBase.StateHasChanged
ComponentBase.ShouldRender
ComponentBase.InvokeAsync
ComponentBase.DispatchExceptionAsync
ComponentBase.RendererInfo
ComponentBase.Assets
ComponentBase.AssignedRenderMode
Namespace: Radzen.Blazor
Assembly: Radzen.Blazor.dll
public class RadzenSpeechToTextButton : RadzenComponent, IComponent, IHandleEvent, IHandleAfterRenderRadzenSpeechToTextButton 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}")) />
public RadzenSpeechToTextButton()Gets or sets the button style.
public ButtonStyle ButtonStyle { get; set; }
| Type | Description |
|---|---|
| ButtonStyle | Gets or sets the button style. |
Callback which provides results from the speech recognition API.
public EventCallback<string> Change { get; set; }
| Type | Description |
|---|---|
| EventCallback<string> | Callback which provides results from the speech recognition API. |
Gets or sets the icon displayed while not recording.
public string Icon { get; set; }
| Type | Description |
|---|---|
| string | Gets or sets the icon displayed while not recording. |
Gets or sets the icon color.
public string IconColor { get; set; }
| Type | Description |
|---|---|
| string | Gets or sets the icon color. |
Gets or sets the icon displayed while recording.
public string Language { get; set; }
| Type | Description |
|---|---|
| string | Gets or sets the icon displayed while recording. |
Gets or sets the icon displayed while recording.
public string StopIcon { get; set; }
| Type | Description |
|---|---|
| string | Gets or sets the icon displayed while recording. |
Gets or sets the message displayed when user hovers the button and it is recording.
public string StopTitle { get; set; }
| Type | Description |
|---|---|
| string | Gets or sets the message displayed when user hovers the button and it is recording. |
Gets or sets the message displayed when user hovers the button and it is not recording.
public string Title { get; set; }
| Type | Description |
|---|---|
| string | Gets or sets the message displayed when user hovers the button and it is not recording. |
protected override void BuildRenderTree(Rendering.RenderTreeBuilder __builder)
| Type | Name | Description |
|---|---|---|
| Rendering.RenderTreeBuilder | __builder |
protected override string GetComponentCssClass()
| Type | Description |
|---|---|
| string |
protected override void OnAfterRender(bool firstRender)
| Type | Name | Description |
|---|---|---|
| bool | firstRender |
Provides interface for javascript to pass speech results back to this component.
public void OnResult(string result)
| Type | Name | Description |
|---|---|---|
| string | result |
Provides interface for javascript to stop speech to text recording on this component if another component starts recording.
public void StopRecording()