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

syncfusion-blazor-speech-to-text同步融合 Blazor 语音到文本

Agent Skill

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

总安装

924

周安装

37

GitHub Stars

公开资料未说明

下载量

299
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

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

简介

用于辅助音频、音乐、语音转写、语音合成或声音素材处理。

  • 适合让 Agent 生成配乐说明、整理音频流程、调用语音工具或处理播客和视频配音素材。
  • 使用时需要确认输入音频来源、输出格式、时长和模型限制;涉及人声克隆、版权音乐或公开发布时,应先核对授权和合规边界。
  • 通过 npx skills add 命令从指定 GitHub 仓库安装使用。
  • syncfusion-blazor-speech-to-text 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Syncfusion Blazor Speech To Text

A comprehensive guide for implementing voice input and speech recognition using the Syncfusion Blazor SpeechToText component. This component captures audio from the user's microphone and converts it to text in real time.

Component Overview

The SpeechToText component provides voice input capabilities by leveraging the browser's Speech Recognition API. It automatically handles microphone access, captures audio, transcribes speech, and manages the listening lifecycle.

Key Features:

  • Real-time speech-to-text conversion
  • Multi-language support (en-US, fr-FR, de-DE, and 100+ languages)
  • Listening state management (Inactive, Listening, Stopped)
  • Interim results for real-time feedback
  • Error handling for various microphone/network issues
  • Browser compatibility detection
  • Customizable tooltips and disabled states
  • Event callbacks for lifecycle hooks

Documentation and Navigation Guide

Getting Started

📄 Read: references/getting-started.md

  • Installation via NuGet package
  • Basic component setup and configuration
  • Property binding and two-way data binding
  • CSS styling and theming
  • Integration with TextArea for display
  • Minimal working example

Transcript and Language

📄 Read: references/transcript-and-language.md

  • Retrieving transcribed text with Transcript property
  • Binding transcript to input fields
  • Setting language preferences (en-US, fr-FR, etc.)
  • Supported language codes and locales
  • Real-world multi-language examples
  • Language switching patterns

Button Customization

📄 Read: references/button-customization.md

  • SpeechToTextButtonSettings configuration
  • Button text customization (start and stop states)
  • Icon CSS classes and icon positioning
  • Icon position values (Left, Right, Top, Bottom)
  • Primary button styling (IsPrimary property)
  • Dynamic button customization patterns
  • Icon library integration (Syncfusion, Font Awesome, Bootstrap)
  • Multi-language button text examples

Tooltip Configuration

📄 Read: references/tooltip-configuration.md

  • SpeechToTextTooltipSettings configuration
  • Tooltip text customization for different states
  • Tooltip positioning (12 position options available)
  • Position reference guide and best practices
  • ShowTooltip property control
  • Dynamic tooltip enabling/disabling
  • Multi-language tooltip support
  • Accessibility considerations for tooltips

Listening States

📄 Read: references/listening-states.md

  • Understanding ListeningState property
  • State values: Inactive, Listening, Stopped
  • Event handling: SpeechRecognitionStarted, SpeechRecognitionStopped
  • State-based UI updates and visual feedback
  • Waveform animations during listening
  • Status indicators and user guidance

Interim Results and Configuration

📄 Read: references/interim-results-and-options.md

  • AllowInterimResults property for real-time updates
  • Difference between interim and final results
  • ShowTooltip property and tooltip customization
  • Disabled state configuration
  • HTML attributes for custom styling
  • Control panel options and UI customization

Public Methods

📄 Read: references/methods.md

  • StartListeningAsync() - Start speech recognition
  • StopListeningAsync() - Stop speech recognition
  • Method signatures and return types
  • Exception handling patterns
  • Complete control examples with start/stop buttons
  • State management and button disabling

Error Handling and Troubleshooting

📄 Read: references/error-handling.md

  • Error types: no-speech, aborted, audio-capture, not-allowed, network, etc.
  • Error handling patterns and recovery
  • User feedback mechanisms for errors
  • Network and service availability issues
  • Microphone permission troubleshooting
  • Browser compatibility checking

Browser Support and API Limitations

📄 Read: references/browser-support.md

  • Browser compatibility matrix
  • Version requirements for Chrome, Edge, Safari, Opera
  • Unsupported browsers (Firefox)
  • Feature detection and polyfills
  • Graceful degradation for unsupported browsers

Quick Start Example

Here's a minimal example to get started with SpeechToText:

@using Syncfusion.Blazor.Inputs

<div style="display: flex; flex-direction: column; gap: 20px; align-items: center; padding: 20px;">
    <h3>Voice to Text Converter</h3>

    <SfSpeechToText @bind-Transcript="@transcript"></SfSpeechToText>

    <SfTextArea
        RowCount="5"
        ColumnCount="50"
        @bind-Value="@transcript"
        ResizeMode="Resize.None"
        Placeholder="Transcribed text will appear here...">
    </SfTextArea>
</div>

@code {
    private string transcript = "";
}

What this does:

  1. Renders a microphone button from SpeechToText
  2. Binds the transcribed text to the transcript variable
  3. Displays the transcript in a TextArea for editing
  4. Uses two-way binding to keep both in sync

Common Patterns

Pattern 1: Real-Time Transcription Display

Display interim results as the user speaks (not just final results):

<SfSpeechToText
    AllowInterimResults="true"
    @bind-Transcript="@transcript">
</SfSpeechToText>
<p>@transcript</p>

Pattern 2: Multi-Language Support

Allow users to switch between languages:

<select @onchange="@((ChangeEventArgs e) => selectedLanguage = e.Value.ToString())">
    <option value="en-US">English</option>
    <option value="fr-FR">French</option>
    <option value="de-DE">German</option>
</select>

<SfSpeechToText
    Language="@selectedLanguage"
    @bind-Transcript="@transcript">
</SfSpeechToText>

@code {
    private string selectedLanguage = "en-US";
    private string transcript = "";
}

Pattern 3: Listen for State Changes

Provide visual feedback based on listening state:

<SfSpeechToText
    ListeningState="@listeningState"
    SpeechRecognitionStarted="@OnListeningStarted"
    SpeechRecognitionStopped="@OnListeningStopped">
</SfSpeechToText>

<div style="margin-top: 15px;">
    @if (listeningState == SpeechToTextState.Listening)
    {
        <span style="color: green;">🎤 Listening...</span>
    }
    else if (listeningState == SpeechToTextState.Stopped)
    {
        <span style="color: orange;">⏸ Stopped</span>
    }
    else
    {
        <span style="color: gray;">○ Ready to listen</span>
    }
</div>

@code {
    private SpeechToTextState listeningState = SpeechToTextState.Inactive;

    private void OnListeningStarted(SpeechRecognitionStartedEventArgs args)
    {
        listeningState = args.State;
    }

    private void OnListeningStopped(SpeechRecognitionStoppedEventArgs args)
    {
        listeningState = args.State;
    }
}

Pattern 4: Error Handling

Gracefully handle errors and inform users:

<SfSpeechToText
    SpeechRecognitionError="@OnSpeechError"
    @bind-Transcript="@transcript">
</SfSpeechToText>

@if (!string.IsNullOrEmpty(errorMessage))
{
    <div style="color: red; margin-top: 10px;">
        ⚠️ @errorMessage
    </div>
}

@code {
    private string transcript = "";
    private string errorMessage = "";

    private void OnSpeechError(SpeechRecognitionErrorEventArgs args)
    {
        errorMessage = args.Error switch
        {
            "no-speech" => "No speech detected. Please try again.",
            "audio-capture" => "No microphone found. Check your device.",
            "not-allowed" => "Microphone access denied. Check browser permissions.",
            "network" => "Network error. Check your connection.",
            _ => $"Error: {args.Error}"
        };
    }
}

Key Properties

PropertyTypeDefaultPurpose
Transcriptstring""Two-way binding for transcribed text
Languagestring"en-US"Language code for speech recognition
ListeningStateSpeechToTextStateInactiveCurrent state (Inactive, Listening, Stopped)
AllowInterimResultsbooltrueShow interim results while speaking
ShowTooltipbooltrueDisplay tooltip on hover
DisabledboolfalseDisable the component
HtmlAttributesDictionary-Custom HTML attributes for button

Common Use Cases

  1. Voice Search: Add voice input to a search box for hands-free searching
  2. Form Filling: Populate form fields using voice input instead of typing
  3. Notes Application: Capture voice notes and convert to text
  4. Accessibility: Enable voice input for users with typing limitations
  5. Multilingual Chat: Support speech input in multiple languages for chat applications
  6. Dictation Feature: Create a dictation tool for long-form text entry
  7. Customer Support: Record and transcribe customer feedback or support calls
  8. Accessibility Compliance: Meet WCAG requirements for voice-enabled interfaces

Next Steps

  • Start with Getting Started reference for installation
  • Explore Transcript and Language for basic usage
  • Check Browser Support to ensure compatibility
  • Review Error Handling for production-ready implementation

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

36.75%
按下载量换算110

Claude

27.61%
按下载量换算83

Cursor

18.11%
按下载量换算54

Gemini CLI

10.34%
按下载量换算31

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

操作浏览器

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

安装前确认

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

来源信息

继续浏览同类 Skills