Trusted by the world’s leading companies
Overview
The React Speech To Text 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.
React Speech To Text Code Example
Easily get started with the React Speech To Text using a few simple lines of TSX code as demonstrated below. Also explore our React Speech To Text Example which shows you how to render and configure a Speech To Text in React.
import * as React from 'react';
import { SpeechToTextComponent, TextAreaComponent } from '@syncfusion/ej2-react-inputs';
export default function App() {
const textareaObj = useRef(null);
const onTranscriptChanged = (args) => {
textareaObj.current.value = args.transcript;
};
return (
<div>
<SpeechToTextComponent transcriptChanged={onTranscriptChanged}></SpeechToTextComponent>
<TextAreaComponent
id="textareaInst"
ref={textareaObj}
resizeMode="None"
rows={5}
cols={50}
value=""
placeholder="Transcribed text will be shown here..."
/>
</div>
);
}Transcription
The Speech To Text 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
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 Speech To Text 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.
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.
Icon with text button
In React Speech To Text, 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 React Speech To Text button:
- Primary
- Secondary
- Outline
- Flat
Any of these styles can be used based on the application.
Built-in themes
The React Speech To Text 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.
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 React Speech To Text component offers APIs and templates for customizing its appearance and behavior. With these APIs, developers can create a unique and highly customized Speech To Text that fits seamlessly into their applications.
Not sure how to create your first React Speech To Text? Our documentation can help.
I’d love to read it nowDiscover Syncfusion’s Complete React Component Ecosystem
Explore over 145+ React UI components featuring established, production-ready controls and the latest pure React components built natively for modern web app development.
-
React Components
-
Pure React Components
-
SMART COMPONENTSGRIDSDATA VISUALIZATIONDROPDOWNSFILE VIEWERS & EDITORSBUTTONSINTERACTIVE CHATINPUTSNAVIGATIONFORMSNOTIFICATIONS
-
GRIDSDATA VISUALIZATIONNAVIGATIONINPUTS
Frequently Asked Questions
Why should you choose the Syncfusion React Speech To Text component?
The Syncfusion React Speech To Text component supports the following features:
Real-time transcription: Instantly captures spoken input and converts it into text, ensuring smooth speech recognition.
- Interim results: Provides partial transcriptions as the user speaks, offering a dynamic, real-time experience before finalizing the text.
- Multilingual recognition: Supports multiple languages, allowing you to transcribe speech into your preferred language.
- Tooltips: Displays information about start and stop actions, guiding you throughout the speech recognition process.
- Appearance: Supports predefined styles and allows customization of content and icons to meet the application’s design and user preferences.
- Support for all modern browsers.
- Touch-friendly and responsive UI.
Extensive demos, and documentation to let you get started quickly with the React Speech To Text.
Where can I find the Syncfusion React Speech To Text demo?
You can find our React Speech To Text demo, which demonstrates how to render and configure the Speech To Text.
Can I download and utilize the Syncfusion React Speech To Text for free?
No, this is a commercial product and requires a paid license. However, a free community license is also available for companies and individuals whose organizations have less than $1 million USD in annual gross revenue, 5 or fewer developers, and 10 or fewer total employees.
How do I get started with the Syncfusion React Speech To Text?
A good place to start would be our comprehensive getting started documentation.
Our Customers Love Us
Here are some of their experiences.
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.