If you just want to use WeNet as a python package for speech recognition application,
just install it by pip
, please note python 3.6+ is required.
pip3 install wenetruntime
And please see doc for usage.
- Clone the repo
git clone https://github.com/wenet-e2e/wenet.git
- Install Conda: please see https://docs.conda.io/en/latest/miniconda.html
- Create Conda env:
conda create -n wenet python=3.8
conda activate wenet
pip install -r requirements.txt
Optionally, if you want to use x86 runtime or language model(LM), you have to build the runtime as follows. Otherwise, you can just ignore this step.
# runtime build requires cmake 3.14 or above
cd runtime/libtorch
mkdir build && cd build && cmake -DGRAPH_TOOLS=ON .. && cmake --build .
Please see doc for building runtime on more platforms and OS.