|
| 1 | +--- |
| 2 | +title: Overview |
| 3 | +page_title: SpeechToTextButton Overview |
| 4 | +description: Learn about the SpeechToTextButton component, its features, and how to use it in Blazor applications. |
| 5 | +slug: speechtotextbutton-overview |
| 6 | +tags: blazor, speech recognition, button, voice input |
| 7 | +published: true |
| 8 | +position: 1 |
| 9 | +--- |
| 10 | + |
| 11 | +# Blazor SpeechToTextButton Overview |
| 12 | + |
| 13 | +The [Blazor SpeechToTextButton component](https://www.telerik.com/blazor-ui/speech-to-text-button) enables speech recognition in Blazor applications. It provides a button that users can select to start and stop speech recognition. The component converts spoken words into text and emits events with the recognized results. |
| 14 | + |
| 15 | +Use the SpeechToTextButton component to add voice input capabilities to forms, search bars, chat interfaces, and other scenarios that require speech-to-text functionality. |
| 16 | + |
| 17 | +## Basic Usage |
| 18 | + |
| 19 | +The following example demonstrates how to add the SpeechToTextButton to a Blazor page and handle the recognition result. |
| 20 | + |
| 21 | +>caption Example of using the SpeechToTextButton |
| 22 | +
|
| 23 | +<demo metaUrl="client/speechtotextbutton/overview/" height="200"></demo> |
| 24 | + |
| 25 | +## Appearance |
| 26 | + |
| 27 | +You can customize the appearance of the SpeechToTextButton by setting parameters such as `Icon`, and `Class`. For more details and examples, refer to [SpeechToTextButton Appearance](slug:speechtotextbutton-appearance). |
| 28 | + |
| 29 | +## Events |
| 30 | + |
| 31 | +The SpeechToTextButton component emits several events that you can handle. For more details, refer to [SpeechToTextButton Events](slug:speechtotextbutton-events). |
| 32 | + |
| 33 | +## SpeechToTextButton Parameters |
| 34 | + |
| 35 | +To review all available parameters for the SpeechToTextButton component, see the [SpeechToTextButton API Reference](https://docs.telerik.com/blazor-ui/api/Telerik.Blazor.Components.TelerikSpeechToTextButton#parameters). |
| 36 | + |
| 37 | +## SpeechToTextButton Reference and Methods |
| 38 | + |
| 39 | +The SpeechToTextButton component exposes several public methods that you can call from your code. For a full list and details, see the [SpeechToTextButton API Reference](https://docs.telerik.com/blazor-ui/api/Telerik.Blazor.Components.TelerikSpeechToTextButton#methods). |
| 40 | + |
| 41 | +>caption Example of Calling a Method by Reference |
| 42 | +
|
| 43 | +<div class="skip-repl"></div> |
| 44 | +````RAZOR |
| 45 | +<TelerikSpeechToTextButton @ref="speechToTextButtonRef" /> |
| 46 | +
|
| 47 | +@code { |
| 48 | + private async Task StartRecognition() |
| 49 | + { |
| 50 | + await speechToTextButtonRef.StartAsync(); |
| 51 | + } |
| 52 | +} |
| 53 | +```` |
| 54 | + |
| 55 | +## Supported Browsers |
| 56 | + |
| 57 | +The SpeechToTextButton component relies on the Web Speech API. For a list of supported browsers, refer to the [Web Speech API documentation](https://developer.mozilla.org/en-US/docs/Web/API/Web_Speech_API#browser_compatibility). |
| 58 | + |
| 59 | +## Next Steps |
| 60 | + |
| 61 | +* [Handle SpeechToTextButton Events](slug:speechtotextbutton-events) |
| 62 | +* [SpeechToTextButton Integration](slug:speechtotextbutton-integration) |
| 63 | + |
| 64 | +## See Also |
| 65 | + |
| 66 | +* [SpeechToTextButton Live Demo](https://demos.telerik.com/blazor-ui/speechtotextbutton/overview) |
| 67 | +* [SpeechToTextButton API Reference](/blazor-ui/api/Telerik.Blazor.Components.TelerikSpeechToTextButton) |
| 68 | +* [SpeechToTextButton Events](slug:speechtotextbutton-events) |
| 69 | +* [SpeechToTextButton Appearance](slug:speechtotextbutton-appearance) |
| 70 | +* [SpeechToTextButton Integration](slug:speechtotextbutton-integration) |
0 commit comments