The JavaScript 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 control 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 control 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 JavaScript 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 JavaScript SpeechToText button:
Any of these styles can be used based on the application.
The JavaScript SpeechToText control 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 JavaScript SpeechToText control 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 JavaScript SpeechToText control using a few simple lines of HTML and TypeScript code, as demonstrated in the following example. Also, explore our JavaScript SpeechToText example, which shows how to render and configure the JavaScript SpeechToText control.
- <div>
- <button id="speech-to-text"></button>
- </div>
- import { SpeechToText, TranscriptChangedEventArgs } from '@syncfusion/ej2-inputs';
-
- let speechToText: SpeechToText = new SpeechToText({
- transcriptChanged: (args: TranscriptChangedEventArgs) => { console.log("Your transcribed text: -" + args.transcript); }
- });
-
- speechToText.appendTo("#speech-to-text");
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.