# 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}")) />

Namespace: [Radzen.Blazor](https://blazor.radzen.com/docs/api/Radzen.Blazor.md)

Assembly: Radzen.Blazor.dll

## Inheritance

- Object
- ComponentBase
- [RadzenComponent](https://blazor.radzen.com/docs/api/Radzen.RadzenComponent.md)
- RadzenSpeechToTextButton

## Implements

- IComponent
- IHandleEvent
- IHandleAfterRender

## Syntax

```csharp
public class RadzenSpeechToTextButton : RadzenComponent, IComponent, IHandleEvent, IHandleAfterRender
```

## Constructors

| Constructor | Description |
|-------------|-------------|
| `public 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}")) /> |

## Properties

| Property | Type | Description |
|------|------|-------------|
| ButtonStyle | [`ButtonStyle`](https://blazor.radzen.com/docs/api/Radzen.ButtonStyle.md) | Gets or sets the button style. |
| Change | `EventCallback<string>` | Callback which provides results from the speech recognition API. |
| Icon | `string` | Gets or sets the icon displayed while not recording. |
| IconColor | `string` | Gets or sets the icon color. |
| Language | `string` | Gets or sets the icon displayed while recording. |
| StopIcon | `string` | Gets or sets the icon displayed while recording. |
| StopTitle | `string` | Gets or sets the message displayed when user hovers the button and it is recording. |
| Title | `string` | Gets or sets the message displayed when user hovers the button and it is not recording. |

## Methods

| Method | Returns | Description |
|------|---------|-------------|
| `BuildRenderTree(Rendering.RenderTreeBuilder __builder)` | `void` |  |
| `GetComponentCssClass()` | `string` |  |
| `OnAfterRender(bool firstRender)` | `void` |  |
| `OnResult(string result)` | `void` | Provides interface for javascript to pass speech results back to this component. |
| `StopRecording()` | `void` | Provides interface for javascript to stop speech to text recording on this component if another component starts recording. |

## Inherited Members

- From [RadzenComponent](https://blazor.radzen.com/docs/api/Radzen.RadzenComponent.md): AddContextMenu, Attributes, ContextMenu, Culture, CurrentStyle, Debounce, DefaultCulture, DefaultUICulture, Dispose, Element, GetCssClass, GetId, GetIdAttribute, IsJSRuntimeAvailable, JSRuntime, Localize, MouseEnter, MouseLeave, OnAfterRenderAsync, OnBecameInvisible, OnContextMenu, OnInitialized, OnMouseEnter, OnMouseLeave, RaiseContextMenu, RaiseMouseEnter, RaiseMouseLeave, Reference, SetParametersAsync, Style, UICulture, UniqueID, Visible
- From ComponentBase: Assets, AssignedRenderMode, DispatchExceptionAsync, InvokeAsync, OnInitializedAsync, OnParametersSet, OnParametersSetAsync, RendererInfo, ShouldRender, StateHasChanged

