Skip to main content

Automatic speech recognition toolkit on PaddlePaddle

Project description

python version GitHub forks GitHub Repo stars GitHub 支持系统

PPASR流式与非流式语音识别项目

PPASR是一款基于PaddlePaddle实现的自动语音识别框架,PPASR中文名称PaddlePaddle中文语音识别(PaddlePaddle Automatic Speech Recognition),当前为V3版本,与V2版本不兼容,如果想使用V2版本,请在这个分支V2。PPASR致力于简单,实用的语音识别项目。可部署在服务器,Nvidia Jetson设备,未来还计划支持Android等移动设备。别忘了star

欢迎大家扫码入知识星球或者QQ群讨论,知识星球里面提供项目的模型文件和博主其他相关项目的模型文件,也包括其他一些资源。

知识星球 QQ群

本项目使用的环境:

  • Anaconda 3
  • Python 3.11
  • PaddlePaddle 2.6.1
  • Windows 11 or Ubuntu 22.04

在线试用

网页版: 在线试用地址

微信小程序
微信小程序

项目特点

  1. 支持多个语音识别模型,包含deepspeech2conformersqueezeformerefficient_conformer等,每个模型都支持流式识别和非流式识别,在配置文件中streaming参数设置。
  2. 支持多种解码器,包含ctc_greedy_searchctc_prefix_beam_searchattention_rescoringctc_beam_search等。
  3. 支持多种预处理方法,包含fbankmfcc等。
  4. 支持多种数据增强方法,包含噪声增强、混响增强、语速增强、音量增强、重采样增强、位移增强、SpecAugmentor、SpecSubAugmentor等。
  5. 支持多种推理方法,包含短音频推理、长音频推理、流式推理、说话人分离推理等。
  6. 更多特点等待你发现。

与V2版本的区别

  1. 项目结构的优化,大幅度降低的使用难度。
  2. 更换预处理的库,改用kaldi_native_fbank,在提高数据预处理的速度,同时也支持多平台。
  3. 修改token的方法,使用sentencepiece制作token,这个框架极大的降低了多种语言的处理难度,同时还使中英文混合训练成为可能。

更新记录

  • 2025.03: 正式发布最终级的V3版本。

视频讲解

模型下载

  1. WenetSpeech (10000小时,普通话) 的预训练模型列表,错误率类型为字错率(CER):
使用模型 是否为流式 预处理方式 解码方式 test_net test_meeting aishell_test 下载地址
Conformer True fbank ctc_greedy_search 0.14758 0.19562 0.06925 加入知识星球获取
Conformer True fbank ctc_prefix_beam_search 0.14689 0.19323 0.06930 加入知识星球获取
Conformer True fbank attention_rescoring 0.13786 0.18922 0.06028 加入知识星球获取
Conformer True fbank ctc_beam_search 0.20660 0.29835 0.05336 加入知识星球获取
DeepSpeech2 True fbank ctc_greedy_search 加入知识星球获取
DeepSpeech2 True fbank ctc_prefix_beam_search 加入知识星球获取
DeepSpeech2 True fbank ctc_beam_search 加入知识星球获取
  1. AIShell (179小时,普通话) 的预训练模型列表,错误率类型为字错率(CER):
使用模型 是否为流式 预处理方式 解码方式 自带的测试集 下载地址
Conformer True fbank ctc_greedy_search 0.06110 加入知识星球获取
Conformer True fbank ctc_prefix_beam_search 0.06114 加入知识星球获取
Conformer True fbank attention_rescoring 0.05412 加入知识星球获取
Conformer True fbank ctc_beam_search 0.04468 加入知识星球获取
DeepSpeech2 True fbank ctc_greedy_search 0.14134 加入知识星球获取
DeepSpeech2 True fbank ctc_prefix_beam_search 0.14132 加入知识星球获取
DeepSpeech2 True fbank ctc_beam_search 0.10598 加入知识星球获取
  1. Librispeech (960小时,英语) 的预训练模型列表,错误率类型为词错率(WER):
使用模型 是否为流式 预处理方式 解码方式 自带的测试集 下载地址
Conformer True fbank ctc_greedy_search 0.07562 加入知识星球获取
Conformer True fbank ctc_prefix_beam_search 0.07518 加入知识星球获取
Conformer True fbank attention_rescoring 0.06669 加入知识星球获取
Conformer True fbank ctc_beam_search / 加入知识星球获取
DeepSpeech2 True fbank ctc_greedy_search 0.15479 加入知识星球获取
DeepSpeech2 True fbank ctc_prefix_beam_search 0.15247 加入知识星球获取
DeepSpeech2 True fbank ctc_beam_search / 加入知识星球获取
  1. 其他数据集的预训练模型列表,错误率类型,如果是中文就是字错率(CER),英文则是词错率(WER),中英混合为混合错误率(MER):
使用模型 是否为流式 预处理方式 数据集 语言 解码方式 测试数据 下载地址
Conformer True fbank 粤语数据集 粤语 ctc_greedy_search 0.05736 加入知识星球获取
Conformer True fbank 粤语数据集 粤语 ctc_prefix_beam_search 0.05730 加入知识星球获取
Conformer True fbank 粤语数据集 粤语 attention_rescoring 0.04877 加入知识星球获取
Conformer True fbank 粤语数据集 粤语 ctc_beam_search 0.05409 加入知识星球获取
Conformer True fbank 中英混合数据集 中英文 ctc_greedy_search 0.09462 加入知识星球获取
Conformer True fbank 中英混合数据集 中英文 ctc_prefix_beam_search 0.09416 加入知识星球获取
Conformer True fbank 中英混合数据集 中英文 attention_rescoring 0.08283 加入知识星球获取
Conformer True fbank 中英混合数据集 中英文 ctc_beam_search / 加入知识星球获取
Conformer True fbank 更大数据集(16000+小时) 中英文 ctc_greedy_search 加入知识星球获取
Conformer True fbank 更大数据集(16000+小时) 中英文 ctc_prefix_beam_search 加入知识星球获取
Conformer True fbank 更大数据集(16000+小时) 中英文 attention_rescoring 加入知识星球获取
Conformer True fbank 更大数据集(16000+小时) 中英文 ctc_beam_search 加入知识星球获取

说明:

  1. 这里字错率或者词错率是使用eval.py
  2. 分别给出了使用三个解码器的错误率,其中ctc_prefix_beam_searchattention_rescoring的解码搜索大小为10。
  3. 训练时使用了噪声增强和混响增强,以及其他增强方法,具体请看配置参数configs/augmentation.yml
  4. 这里只提供了流式模型,但全部模型都支持流式和非流式的,在配置文件中streaming参数设置。

有问题欢迎提 issue 交流

文档教程

相关项目

特别感谢

打赏作者


打赏一块钱支持一下作者

打赏作者

参考资料

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ppasr-3.0.3-py3-none-any.whl (146.3 kB view details)

Uploaded Python 3

File details

Details for the file ppasr-3.0.3-py3-none-any.whl.

File metadata

  • Download URL: ppasr-3.0.3-py3-none-any.whl
  • Upload date:
  • Size: 146.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.7

File hashes

Hashes for ppasr-3.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 42c770670bfa71ada294f82085cc8e64d297f0f96206687fa759631549aea050
MD5 068156ecb6bea451ee9b2e6e77dfd1f7
BLAKE2b-256 43896bb8c2c119e74e8d433534773eca92bc084475ef5c55ccddf4a0e2756872

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page