Syncfusion Feedback

Trusted by the world’s leading companies

Syncfusion Trusted Companies

Overview

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.

JavaScript SpeechToText control


Transcription

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.

JavaScript SpeechToText transcription


JavaScript SpeechToText interim results

Interim results

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.


Listening state

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.

JavaScript SpeechToText listening state


JavaScript SpeechToText language

Language

This feature supports multiple languages and users can transcribe speech in their preferred language.


Tooltips

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.

JavaScript SpeechToText tooltips


JavaScript SpeechToText icon with text

Icon with text button

In JavaScript SpeechToText, buttons with an icon to the right or left of the button text or an icon-only button are supported.


Predefined styles

The following predefined styles are available in the JavaScript SpeechToText button:

  • Primary
  • Secondary
  • Outline
  • Flat

Any of these styles can be used based on the application.

JavaScript SpeechToText styles


Built-in themes

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.


Accessibility

  • Full support for WAI-ARIA accessibility practices for screen readers and assistive devices.
  • UI visual elements such as foreground color, background color, line spacing, text, and images are designed based on WCAG 2.0 standards.
  • Right-to-left (RTL) text rendering can be set for users of RTL languages like Hebrew, Arabic, or Persian.

Developer-friendly APIs

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.


JavaScript SpeechToText code example

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.

  1. <div>
  2. <button id="speech-to-text"></button>
  3. </div>
  1. import { SpeechToText, TranscriptChangedEventArgs } from '@syncfusion/ej2-inputs';
  2.  
  3. let speechToText: SpeechToText = new SpeechToText({
  4. transcriptChanged: (args: TranscriptChangedEventArgs) => { console.log("Your transcribed text: -" + args.transcript); }
  5. });
  6.  
  7. speechToText.appendTo("#speech-to-text");

90+ JAVASCRIPT UI CONTROLS

Our Customers Love Us

Having an excellent set of tools and a great support team, Syncfusion® reduces customers’ development time.
Here are some of their experiences.

Rated by users across the globe

Transform your applications today by downloading our free evaluation version
Download Free Trial No credit card required.

Awards

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.

Up arrow icon
Chat with us