Token导航 LogoToken导航TokenDH.com
待分类操作浏览器github未标认证来源可访问许可证需确认审计通过

syncfusion-angular-speech-to-textsyncfusion Angular speech TO text 音频

Agent Skill

用于辅助音频、音乐、语音转写、语音合成或声音素材处理。它适合让 Agent 生成配乐说明、整理音频流程、调用语音工具或处理播客和视频配音素材。使用时需要确认输入音频来源、输出格式、时长和模型限制;涉及人声克隆、版权音乐或公开发布时,应先核对授权和合规边界。

总安装

1,140

周安装

48

GitHub Stars

公开资料未说明

下载量

399
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:syncfusion-angular-speech-to-text(syncfusion Angular speech TO text 音频)
来源仓库:https://github.com/syncfusion/angular-ui-components-skills
仓库路径:skills/syncfusion-angular-speech-to-text
安装命令:
npx skills add https://github.com/syncfusion/angular-ui-components-skills --skill syncfusion-angular-speech-to-text
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

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

简介

用于辅助音频处理和语音转写工作流。syncfusion-angular-speech-to-text 属于待分类类 Skill,可作为该场景下的辅助能力补充。

  • 适合生成配乐说明、整理音频流程或处理播客素材。
  • 通过 GitHub 仓库安装,需确认输入音频来源和输出格式。
  • 涉及人声克隆或版权音乐时应核对授权和合规边界。
  • 注意模型限制,避免生成违规或侵权内容。

SKILL.md

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)

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

35.25%
按下载量换算141

Claude

29.48%
按下载量换算118

Cursor

19.84%
按下载量换算79

Gemini CLI

9.23%
按下载量换算37

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills