Linux

This page describes how to build sherpa-onnx on Linux.

All you need is to run:

git clone https://github.com/k2-fsa/sherpa-onnx
cd sherpa-onnx
mkdir build
cd build

# By default, it builds static libaries and uses static link.
cmake -DCMAKE_BUILD_TYPE=Release ..

# If you have GCC<=10, e.g., use Ubuntu <= 18.04 or use CentOS<=7, please
# use the following command to build shared libs; otherwise, you would
# get link errors from libonnxruntime.a
#
# cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=ON ..
#
#
make -j6

After building, you will find an executable sherpa-onnx inside the bin directory.

That’s it!

Please refer to Pre-trained models for a list of pre-trained models.