MCPInstall

syncfusion-angular-speech-to-text

Implement the Syncfusion Angular SpeechToText component. Use this skill for real-time speech-to-text conversion with text transcripts, custom button appearance and tooltips, recognition event handling, multiple language support with localization and RTL, error handling, and security best practices for microphone access and data transmission.

Installs
308
Last 24h
—
Trending rank
—
Security
Not audited

Install

Works with every agent the skills CLI supports.

npx skills add https://github.com/syncfusion/angular-ui-components-skills --skill syncfusion-angular-speech-to-text
  1. 01

    Install

    Run the command in your project. The CLI asks which agents to install for.

  2. 02

    Describe the task

    Ask your agent for something this skill covers. It loads syncfusion-angular-speech-to-text automatically when relevant.

  3. 03

    Review the result

    The agent follows the SKILL.md steps, scripts and references bundled with the skill.

SKILL.md

The instructions your agent reads when the skill is triggered.

Syncfusion Angular SpeechToText Component

Component Overview

The Syncfusion Angular SpeechToText component is a lightweight, accessible control that converts spoken words into text using the browser's native Speech Recognition API.

Key Capabilities:

  • Real-time Transcription - Convert speech to text with interim and final results
  • Button Customization - Configure icon, text, positioning, and styling for start/stop buttons
  • Tooltip Support - Add tooltips with custom content and positioning for better UX
  • Events & Interactions - Handle listening state changes, errors, and transcript updates
  • Methods - Programmatic control via startListening() and stopListening() methods
  • Language Support - Multi-language recognition with locale configuration
  • Globalization - RTL support and localization for international applications
  • Styling Options - CSS classes, HTML attributes, and theme integration
  • Security Features - HTTPS enforcement and explicit microphone permissions
  • Browser Compatibility - Chrome 25+, Edge 79+, Safari 12+, Opera 30+

Documentation and Navigation Guide

Getting Started

📄 Read: references/getting-started.md

  • Package installation (Ivy vs ngcc compatibility)
  • Angular project setup and configuration
  • CSS imports and theme management
  • Module imports and basic component rendering
  • Button content customization
  • Complete working example with TextArea integration

Button Customization

📄 Read: references/button-customization.md

  • ButtonSettingsModel configuration
  • Start and stop button content labels
  • Icon customization with CSS classes
  • Icon positioning (top, bottom, left, right)
  • Primary button styling for emphasis
  • Visual style variations and best practices

Tooltip Configuration

📄 Read: references/tooltip-configuration.md

  • TooltipSettingsModel setup
  • Tooltip content for start and stop states
  • Tooltip positioning relative to button
  • Enabling and disabling tooltips
  • Practical tooltip usage patterns

Styling and Appearance

📄 Read: references/styling-and-appearance.md

  • CSS class system (e-primary, e-outline, e-info, e-success, e-warning, e-danger)
  • Custom styling with cssClass property
  • Theme configuration and integration
  • HTML attributes customization
  • Custom CSS examples and advanced styling

Events and Methods

📄 Read: references/events-and-methods.md

  • Event types (created, onStart, onStop, onError, transcriptChanged)
  • Event handler implementation and event arguments (including event, name properties)
  • Programmatic control with startListening(), stopListening(), and destroy() methods
  • Controlling component state with listeningState property (Inactive, Listening, Stopped)
  • Canceling listening with the cancel property in onStart event
  • Distinguishing user vs programmatic actions with isInteracted property
  • Event handling patterns for different scenarios
  • Managing listening lifecycle programmatically
  • State transition management and workflow control
  • Component cleanup and memory management

Speech Recognition Features

📄 Read: references/speech-recognition-features.md

  • Retrieving transcript from speech input
  • Setting recognition language (lang property)
  • Interim results configuration (allowInterimResults)
  • Listening state management (Inactive, Listening, Stopped)
  • Tooltip visibility control (showTooltip)
  • Disabled state configuration
  • State persistence with enablePersistence property
  • State monitoring and status management
  • Custom state management with localStorage

Internationalization

📄 Read: references/internationalization.md

  • Localization setup using L10n.load()
  • Translation key mapping for error messages and labels
  • Multi-language implementation examples
  • RTL (Right-to-Left) support enablement
  • Language-specific configuration best practices

Security and Error Handling

📄 Read: references/security-and-error-handling.md

  • Security risks and mitigation strategies
  • Data transmission and privacy concerns
  • HTTPS enforcement and MITM prevention
  • Microphone permission management
  • Error type handling (no-speech, aborted, audio-capture, not-allowed, service-not-allowed, network, unsupported-browser, default)
  • Browser support matrix and compatibility

Quick Start Example

Here's a minimal working SpeechToText component with transcript output:

import { Component, ViewChild } from '@angular/core';
import { SpeechToTextModule, TextAreaComponent, TextAreaModule, TranscriptChangedEventArgs } from '@syncfusion/ej2-angular-inputs';

@Component({
    imports: [SpeechToTextModule, TextAreaModule],
    standalone: true,
    selector: 'app-root',
    template: `
    <div class="speechText-container">
        <button ejs-speechtotext 
                (transcriptChanged)="onTranscriptChange($event)">
        </button>
        <ejs-textarea #outputTextarea 
                      id="textareaInst" 
                      value="" 
                      rows="5" 
                      cols="50" 
                      resizeMode="None" 
                      placeholder="Transcribed text will be shown here...">
        </ejs-textarea>
    </div>`
})
export class AppComponent {
    @ViewChild('outputTextarea') outputTextarea!: TextAreaComponent;
    
    onTranscriptChange(args: TranscriptChangedEventArgs): void {
        this.outputTextarea.value = args.transcript;
    }
}

Common Patterns

Pattern 1: Customized Button with Events

Implement a styled button with custom labels and event handlers:

public buttonSettings: ButtonSettingsModel = {
    content: 'Start Listening',
    stopContent: 'Stop Listening',
    iconCss: 'e-icons e-play',
    stopIconCss: 'e-icons e-pause',
    isPrimary: true
};

onListeningStart(args: StartListeningEventArgs): void {
    console.log('Listening started');
}

onListeningStop(args: StopListeningEventArgs): void {
    console.log('Listening stopped');
}

Pattern 2: Multi-Language Support

Configure localization for international applications:

L10n.load({
    'de': {
        "speech-to-text": {
            "startAriaLabel": "Drücken Sie, um zu sprechen",
            "stopAriaLabel": "Drücken Sie, um zu stoppen",
            "noSpeechError": "Keine Sprache erkannt"
        }
    }
});

Pattern 3: Programmatic Control

Manage listening state programmatically without user button clicks:

@ViewChild('speechtotext') speechToText!: SpeechToTextComponent;

public startListening(): void {
    this.speechToText.startListening();
}

public stopListening(): void {
    this.speechToText.stopListening();
}

Pattern 4: Error Handling

Handle speech recognition errors gracefully:

onErrorHandler(args: ErrorEventArgs): void {
    if (args.error === 'no-speech') {
        console.log('No speech detected. Please try again.');
    } else if (args.error === 'not-allowed') {
        console.log('Microphone permission denied.');
    }
}

Pattern 5: Conditional Listening with Cancel

Control when listening can start using the cancel property:

onListeningStart(args: StartListeningEventArgs): void {
    // Cancel listening if conditions aren't met
    if (!this.hasPermission || !navigator.onLine) {
        args.cancel = true;
        alert('Cannot start listening. Check permissions and connection.');
        return;
    }
    
    // Track if user or system triggered the action
    if (args.isInteracted) {
        console.log('User clicked the button');
    } else {
        console.log('Started programmatically');
    }
}

Pattern 6: Distinguishing Interim vs Final Results

Handle interim and final transcripts differently:

onTranscriptChange(args: TranscriptChangedEventArgs): void {
    if (args.isInterimResult) {
        // Show interim results in real-time (lighter styling)
        this.interimText = args.transcript;
    } else {
        // Process final results (save, send to API, etc.)
        this.finalText = args.transcript;
        this.saveTranscript(args.transcript);
    }
}

Pattern 7: Controlling Component State

Programmatically control the component's operational state:

import { SpeechToTextState } from '@syncfusion/ej2-angular-inputs';

export class AppComponent {
    public currentState: SpeechToTextState = SpeechToTextState.Inactive;
    
    // Set component to listening state
    startListening(): void {
        this.currentState = SpeechToTextState.Listening;
    }
    
    // Set component to stopped state
    stopListening(): void {
        this.currentState = SpeechToTextState.Stopped;
    }
    
    // Reset to inactive state
    resetState(): void {
        this.currentState = SpeechToTextState.Inactive;
    }
}

Pattern 8: Proper Component Cleanup

Ensure proper cleanup to prevent memory leaks:

import { OnDestroy } from '@angular/core';

export class AppComponent implements OnDestroy {
    @ViewChild('speechtotext') speechToText!: SpeechToTextComponent;
    
    ngOnDestroy(): void {
        if (this.speechToText) {
            this.speechToText.stopListening();
            this.speechToText.destroy();
        }
    }
}

Key Props

PropTypeDefaultPurpose
buttonSettingsButtonSettingsModel-Configure button appearance and labels
tooltipSettingsTooltipSettingsModel-Customize tooltip content and position
langstring'en-US'Set speech recognition language
allowInterimResultsbooleantrueEnable real-time interim transcription
transcriptstring''Current recognized text (read-only)
listeningStateSpeechToTextStateInactiveMonitor listening status (Inactive, Listening, Stopped)
showTooltipbooleantrueDisplay tooltip on hover
disabledbooleanfalseDisable component interaction
enablePersistencebooleanfalsePersist component state across page reloads
enableRtlbooleanfalseEnable right-to-left text direction
cssClassstring-Apply custom CSS classes
htmlAttributesobject-Set custom HTML attributes on button
localestring'en-US'Set UI localization language

Browser Requirements

The SpeechToText component requires:

  • Active internet connection for speech recognition processing
  • Browser Speech Recognition API support:
    • Chrome 25+
    • Edge 79+
    • Safari 12+
    • Opera 30+
    • Firefox: Not Supported
  • Microphone hardware connected to the system
  • User microphone permission granted in browser settings
  • HTTPS context for secure microphone access (recommended)

FAQ

What does the syncfusion-angular-speech-to-text skill do?

Implement the Syncfusion Angular SpeechToText component. Use this skill for real-time speech-to-text conversion with text transcripts, custom button appearance and tooltips, recognition event handling, multiple language support with localization and RTL, error handling, and security best practices for microphone access and data transmission.

How do I install syncfusion-angular-speech-to-text?

Run npx skills add https://github.com/syncfusion/angular-ui-components-skills --skill syncfusion-angular-speech-to-text in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/syncfusion-angular-speech-to-text/ (personal) or .claude/skills/syncfusion-angular-speech-to-text/ (project).

Which AI agents can use syncfusion-angular-speech-to-text?

Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.

Is syncfusion-angular-speech-to-text safe to install?

No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.

Who maintains syncfusion-angular-speech-to-text?

It is published by syncfusion in syncfusion/angular-ui-components-skills. It has 308 recorded installs.

More from syncfusion/angular-ui-components-skills

View all →

syncfusion-angular-grid

syncfusion/angular-ui-components-skills

Implements Syncfusion Angular Grid component for feature-rich data tables and grids. Use this when working with data display, sorting, filtering, grouping, aggregates, editing, or exporting. This skill covers grid configuration, CRUD operations, virtual scrolling or infinite scrolling, hierarchy grids, state persistence, and advanced data management features for data-intensive applications.

Frontend & Design342 installs

syncfusion-angular-common

syncfusion/angular-ui-components-skills

Common utilities and features for Syncfusion Angular components. Use this skill when the user needs to implement animations, drag-and-drop, state persistence, RTL support, localization, globalization, security, templates, and advanced features for Syncfusion Angular components.

Frontend & Design327 installs

syncfusion-angular-chart

syncfusion/angular-ui-components-skills

Implement Syncfusion Angular Chart component for professional data visualization. Use this when creating or customizing charts such as line, bar, column, area, pie, financial (candlestick, OHLC), scatter, bubble, or stock charts. Supports axes configuration, series binding, legends, tooltips, zooming, real-time updates, technical indicators, themes, export, and accessibility features.

Frontend & Design321 installs

syncfusion-angular-themes

syncfusion/angular-ui-components-skills

Use this skill when users need to apply themes, customize appearance, switch dark mode, use CSS variables, configure icons, or modify visual styling for Syncfusion Angular components. Covers icon library, size modes, and Theme Studio integration.

Frontend & Design319 installs

syncfusion-angular-license

syncfusion/angular-ui-components-skills

Use this skill when the user asks about Syncfusion Angular licensing, license keys, license registration, license validation errors, trial licenses, or license troubleshooting. This skill provides comprehensive guidance on generating, registering, and managing Syncfusion license keys for Angular applications, including edition-based and platform-based licensing models, registration methods, CI/CD integration, and resolving common licensing errors.

Frontend & Design319 installs

syncfusion-angular-rich-text-editor

syncfusion/angular-ui-components-skills

Implements the Syncfusion Angular Rich Text Editor (ejs-richtexteditor) from @syncfusion/ej2-angular-richtexteditor using RichTextEditorModule, HtmlEditorService, and MarkdownEditorService.Use this skill for toolbar configuration, image/video/audio insertion, paste cleanup, AI assistant integration, emoji picker, slash menu, mentions, import/export Word/PDF, form validation, and source code view in Angular applications.

Frontend & Design317 installs

Popular frontend & design skills

View category →

setup-matt-pocock-skills

mattpocock/skills

Configure this repo for the engineering skills: set up its issue tracker, triage label vocabulary, and domain doc layout. Run once before first use of the other engineering skills.

Frontend & Design1.1M installs

frontend-design

anthropics/skills

Guidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults.

OfficialFrontend & Design1M installs

hyperframes-animation

heygen-com/hyperframes

All animation knowledge for HyperFrames — atomic motion rules, multi-phase scene blueprints, scene transitions, broader motion-design techniques, AND the seven runtime adapters (GSAP default, plus Lottie, Three.js, Anime.js, CSS keyframes, Web Animations API, TypeGPU). Use for any motion or animation task: pick 2-4 rules and compose, or load a blueprint, or look up runtime-specific API (e.g. GSAP eases / Lottie player / Three.js mixer). Also covers auditing an existing composition's choreography (animation map) and 24 named text-animation effects. HyperFrames-native: single paused timeline, seek-safe, deterministic.

prototype

mattpocock/skills

Build a throwaway prototype to answer a design question. Use when the user wants to sanity-check whether a state model or logic feels right, or explore what a UI should look like.

Frontend & Design999.2K installs

hyperframes-core

heygen-com/hyperframes

The HyperFrames composition contract — build one renderable project. Use for composition structure, the data- timing attributes, class="clip", tracks, sub-compositions, variables, framework-owned media playback, deterministic-render rules, and validation. Read before writing composition HTML.

Frontend & Design930.5K installs

vercel-react-best-practices

vercel-labs/agent-skills

React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React/Next.js code to ensure optimal performance patterns. Triggers on tasks involving React components, Next.js pages, data fetching, bundle optimization, or performance improvements.

OfficialFrontend & Design843.1K installs