glynpu / wenet

Transformer based ASR Engine.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

WeNet

We share net together. We borrowed a lot of code from ESPnet, and we refered to OpenTransformer for batch inference.

The main motivation of WeNet is to close the gap between research and production End-to-End (E2E) speech recognition models, to reduce the effort of productizing E2E models, and to explore better E2E models for production.

Highlights

  • Light weight: WeNet is designed specifically for E2E speech recognition, with clean and simple code. It is all based on PyTorch and its corresponding ecosystem.
  • Production ready: The python code of WeNet meets the requirements of TorchScript, so the model trained by WeNet can be directly exported by Torch JIT and use LibTorch for inference. There is no gap between the research model and production model. Neither model conversion nor additional code is required for model inference.
  • Portable runtime: WeNet will provide several demos to show how to host WeNet trained models on different platforms, including server (x86) and embedded (ARM in Android platforms).
  • Unified solution for streaming and non-streaming ASR: WeNet implements Unified Two Pass (U2) framework to achieve accurate, fast and unified E2E model, which is favorable for industry adoption.
  • Well documented: Detailed documentation and tutorials will be provided.

Performance Benchmark

Please see examples/$dataset/s0/README.md for WeNet benchmark on different speech datasets.

Documentation

You can visit Docs for WeNet Sphinx documentation. Or please see tutorails below:

Installation

  • Clone
git clone https://github.com/mobvoi/wenet.git
conda create -n wenet python=3.8
conda activate wenet
pip install -r requirements.txt
conda install pytorch==1.6.0 cudatoolkit=10.1 -c pytorch
  • Install Kaldi: WeNet requries Kaldi for feature extraction (a TorchAudio version is under development). Please download and build Kaldi, then set Kaldi root as:
vim example/aishell/s0/path.sh
KALDI_ROOT=${your_kaldi_root_path}

About

Transformer based ASR Engine.

License:Apache License 2.0


Languages

Language:Python 75.6%Language:C++ 17.5%Language:Shell 5.6%Language:Starlark 1.2%