/syncfusion-react:syncfusion-react-speech-to-textfrom Syncfusion React UI Components
Implement the Syncfusion React SpeechToText component. Use this skill to convert speech to text, manage microphone input, control listening states, process speech events, customize UI, support accessible voice-enabled forms, and handle globalization and security in React applications.
Ships in Syncfusion React UI Components. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
The SpeechToText component enables users to convert spoken words into text using the Web Speech API. This skill helps you implement, customize, and troubleshoot speech recognition in React applications. The main component that captures audio from the user's microphone and converts speech to text in real-time using browser APIs.
📄 Read: references/getting-started.md
disabled property)📄 Read: references/speech-recognition-features.md
SpeechToTextState enum (Inactive, Listening, Stopped)listeningState from event args and component ref📄 Read: references/button-and-tooltip-customization.md
showTooltip property)TooltipPosition values)📄 Read: references/events-and-methods.md
cancel property to prevent listening startisInteracted to distinguish user vs programmatic triggerserrorMessage for human-readable error detailsisInterimResult for interim vs final transcript results📄 Read: references/globalization-and-localization.md
htmlAttributes for custom HTML/ARIA attributes on the button element📄 Read: references/troubleshooting-and-security.md
import { SpeechToTextComponent, TextAreaComponent, TranscriptChangedEventArgs } from '@syncfusion/ej2-react-inputs';
import { useState } from 'react';
import "@syncfusion/ej2-tailwind3-theme/styles/speech-to-text/index.css";
function VoiceNoteApp() {
const [transcript, setTranscript] = useState('');
const handleTranscriptChanged = (args: TranscriptChangedEventArgs) => {
setTranscript(args.transcript);
};
return (
<div style={{ padding: '20px' }}>
<h2>Voice Note Recorder</h2>
{/* SpeechToText component with microphone button */}
<SpeechToTextComponent
id="speechToText"
transcriptChanged={handleTranscriptChanged}
/>
{/* Display transcribed text */}
<TextAreaComponent
id="noteArea"
value={transcript}
resizeMode="None"
rows={5}
cols={50}
placeholder="Your voice will appear here..."
/>
</div>
);
}
export default VoiceNoteApp;
import { SpeechToTextComponent, TextBoxComponent } from '@syncfusion/ej2-react-inputs';
import { useState } from 'react';
function VoiceForm() {
const [formData, setFormData] = useState({
name: '',
message: ''
});
const handleNameTranscript = (args: any) => {
setFormData(prev => ({ ...prev, name: args.transcript }));
};
const handleMessageTranscript = (args: any) => {
setFormData(prev => ({ ...prev, message: args.transcript }));
};
return (
<div>
<label>Name (speak):</label>
<SpeechToTextComponent transcriptChanged={handleNameTranscript} />
<TextBoxComponent value={formData.name} />
<label>Message (speak):</label>
<SpeechToTextComponent transcriptChanged={handleMessageTranscript} />
<TextBoxComponent value={formData.message} />
</div>
);
}
import { SpeechToTextComponent } from '@syncfusion/ej2-react-inputs';
import { useRef } from 'react';
function VoiceControlApp() {
const speechRef = useRef<SpeechToTextComponent>(null);
const startVoiceInput = () => {
speechRef.current?.startListening();
};
const stopVoiceInput = () => {
speechRef.current?.stopListening();
};
return (
<div>
<SpeechToTextComponent ref={speechRef} />
<button onClick={startVoiceInput}>Start Recording</button>
<button onClick={stopVoiceInput}>Stop Recording</button>
</div>
);
}
import { SpeechToTextComponent, ErrorEventArgs } from '@syncfusion/ej2-react-inputs';
import { useState } from 'react';
function VoiceWithErrorHandling() {
const [error, setError] = useState('');
const [isListening, setIsListening] = useState(false);
const handleError = (args: ErrorEventArgs) => {
// args.errorMessage is the human-readable description; args.error is the error code
setError(args.errorMessage || `Error: ${args.error}`);
};
const handleStart = () => {
setIsListening(true);
setError('');
};
const handleStop = () => {
setIsListening(false);
};
return (
<div>
<SpeechToTextComponent
onError={handleError}
onStart={handleStart}
onStop={handleStop}
/>
{isListening && <p>🎤 Listening...</p>}
{error && <p style={{ color: 'red' }}>{error}</p>}
</div>
);
}
| Prop | Type | Description |
|---|---|---|
lang | string | Language for speech recognition (e.g., 'en-US', 'fr-FR') |
transcript | string | Current transcribed text |
allowInterimResults | boolean | Show real-time results (default: true) |
listeningState | SpeechToTextState | Current listening state (Inactive, Listening, Stopped) |
buttonSettings | ButtonSettingsModel | Customize button appearance and content |
tooltipSettings | TooltipSettingsModel | Configure tooltip display |
showTooltip | boolean | Whether to display the tooltip on hover (default: true) |
cssClass | string | Apply CSS classes for styling |
disabled | boolean | Disable all component interaction (default: false) |
htmlAttributes | { [key: string]: string } | Additional HTML attributes (ARIA, data-*, etc.) for the root button element |
locale | string | Localization language code |
enableRtl | boolean | Enable right-to-left layout |
enablePersistence | boolean | Persist component state between page reloads via localStorage |
| Event | Args | Description |
|---|---|---|
created | - | Fired when component is initialized |
onStart | StartListeningEventArgs | Fired when speech recognition begins. Args: cancel, event, isInteracted, listeningState, name |
onStop | StopListeningEventArgs | Fired when speech recognition ends. Args: event, isInteracted, listeningState, name |
onError | ErrorEventArgs | Fired when an error occurs. Args: error, errorMessage, event, name |
transcriptChanged | TranscriptChangedEventArgs | Fired when transcription updates. Args: transcript, isInterimResult, event, name |
| Method | Description |
|---|---|
startListening() | Begin speech recognition programmatically |
stopListening() | Stop speech recognition programmatically |
destroy() | Destroy the component instance and release all resources |
Solution: Check browser permissions settings and allow microphone access in security settings
Solution: Check microphone volume, speak clearly, verify correct language setting
Solution: Ensure CSS imports are included and license key is registered
Solution: Check if browser supports Web Speech API (Chrome, Edge, Safari support it)
references/button-and-tooltip-customization.md (opens in a new tab)references/events-and-methods.md (opens in a new tab)references/getting-started.md (opens in a new tab)references/globalization-and-localization.md (opens in a new tab)references/speech-recognition-features.md (opens in a new tab)references/troubleshooting-and-security.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub syncfusion/boldcreate-plugins --plugin syncfusion-react65 skills in this plugin
/syncfusion-react-3d-chartImplement Syncfusion React 3D Chart component from the @syncfusion/ej2-react-charts package. Use this skill when users need 3D column, bar, stacked column, stacked bar, or 100% stacked chart variations. Covers Chart3DComponent, axis configuration (category, numeric, datetime, logarithmic), data binding, multiple panes, data labels, legends, tooltips, selection, print/export, theming, and accessibility./syncfusion-react-3d-circular-chartImplements the Syncfusion React 3D Circular Chart component for pie and donut chart visualization. Use this when users need 3D circular charts, data labels, legends, tooltips, or empty point handling. Guides through installation, configuration, customization, and troubleshooting of 3D Circular Charts in React applications./syncfusion-react-accordionGuide users to implement Syncfusion React Accordion component for collapsible content panels. Use this skill whenever the user needs to create expandable/collapsible sections, accordion layouts, tabbed content panels, multi-step forms, FAQs, or navigation with expandable items. Covers component setup, expand modes, animations, dynamic content loading, styling, events, lifecycle, React hooks integration, and complete API reference.
Other plugins' skills for the same job