搜索插件、代码仓与 APP 分类

插件详情v7.5.0

speech_to_text

一个 Flutter 插件,可提供特定于设备的语音转文本识别功能。

AndroidiOSWebmacOSWindows
近 30 天下载
93.4万
喜欢数
1630
Pub 分数
150

安装插件

flutter pub add speech_to_text

插件介绍

基于插件公开信息、社区数据与项目使用情况整理的选型参考。

一个 Flutter 插件,通过利用设备特定的语音识别 API 实现语音转文本功能。它支持跨多个平台(包括 Android、iOS、Web、macOS 和 Windows)的实时转录。该插件提供了一个简单的接口来启动和停止语音识别,可选配置包括语言、连续识别和错误处理。适用于需要语音输入的应用程序,如语音助手、语音输入工具或辅助功能。可轻松集成到 Flutter 应用中,设置简单。

适合场景

  • 语音控制界面
  • 实时转录
  • 无障碍工具
  • 语音搜索
  • 语音输入应用
  • 免提数据输入

主要特点

  • 跨平台支持
  • 实时识别
  • 语言选择
  • 连续监听模式
  • 错误和状态回调
  • 简单 API 集成

适合对象

  • 开发语音功能应用的开发者
  • 需要免提操作的应用程序
  • 注重可访问性的应用程序
  • 语音驱动的用户体验
  • 原型化语音功能

使用建议

  • 需要麦克风权限
  • 性能因设备而异
  • 某些平台需要互联网连接
  • 有限的离线功能
  • 准确性取决于音频质量和环境

原始 README

以下为关联源码仓库的 README 原文快照,最新内容请访问源码仓库。

speech_to_text

A library that exposes device specific speech recognition capability.

This plugin contains a set of classes that make it easy to use the speech recognition capabilities of the underlying platform in Flutter. It supports Android, iOS and web. The target use cases for this library are commands and short phrases, not continuous spoken conversion or always on listening.

Contents

Plugin

This project has the code for the plugin on multiple native platforms including iOS, Android and the web.

Platform Interface

This project defines the behaviour required on each host platform. To implement the plugin for a new platform the behaviour of this interface is implemented on that platform. See the docs here for a description of the approach.

Example apps

The main example app included with the plugin shows basic use of the plugin.

In addition there is a Provider example that shows how to use the plugin as a Flutter Provider.

These examples work only with the plugin source checked out because their dependency is on a relative path, not the pub.dev version.

所属分类

依赖

依赖清单 6 项

源码仓库

使用此插件的项目