Skip to content

Latest commit

 

History

History
42 lines (30 loc) · 1.05 KB

install.md

File metadata and controls

42 lines (30 loc) · 1.05 KB

Install

Install prebuilt python package

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.

Install for training

  • Clone the repo
git clone https://github.com/wenet-e2e/wenet.git
conda create -n wenet python=3.8
conda activate wenet
pip install -r requirements.txt

Build for deployment

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.