The Blazor SpeechToText converts speech into text in real-time using the Web Speech API. It has built-in features such as live transcription, multi-language support, predefined styles, tooltips, and customizable UI for an intuitive user experience.
The SpeechToText component continuously converts audio input into text in real-time, supporting both interim and final results for smooth transcription. This makes it ideal for applications like dictation, voice commands, and live captions.
Interim results provide live feedback while the user is speaking. These temporary transcriptions allow users to see the speech-to-text process in real-time before the final result is received.
The SpeechToText component supports the three states listed below.
Inactive
: Idle state with no active speech recognition.Listening
: Captures and transcribes speech with a stop icon and blinking animation.Stopped
: Recognition ends, displaying the final transcript.This feature supports multiple languages and users can transcribe speech in their preferred language.
Tooltips display information when hovering over items, enhancing user experience. Tooltips can be customized using tooltip settings to provide custom information about start and stop listening states.
In Blazor SpeechToText, buttons with an icon to the right or left of the button text or an icon-only button are supported.
The following predefined styles are available in the Blazor SpeechToText button:
Any of these styles can be used based on the application.
The Blazor SpeechToText component supports these built-in themes: Tailwind CSS, Bootstrap 5, Bootstrap 4, Bootstrap, Material, Fabric, Fluent, and high contrast. Users can customize these built-in themes or create new themes to achieve the desired look and feel by overriding SASS variables or using the Theme Studio application.
The Blazor SpeechToText component offers APIs and templates for customizing its appearance and behavior. With these APIs, developers can create a unique and highly customized SpeechToText that fits seamlessly into their applications.
Easily get started with the Blazor SpeechToText using a few simple lines of C# code, as demonstrated in the following example. Also explore our Blazor SpeechToText example, which shows how to render and configure the Blazor SpeechToText component.
- @using Syncfusion.Blazor.Inputs
-
- <SfSpeechToText @bind-Transcript="@Transcript"> </SfSpeechToText>
-
- <p> Your transcribed text: - @Transcript <p>
-
- @code {
- private string Transcript = String.Empty;
- }
Greatness—it’s one thing to say you have it, but it means more when others recognize it. Syncfusion® is proud to hold the following industry awards.