Skip to content

EmreOzkose/sherpa-onnx

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Introduction

See https://github.com/k2-fsa/sherpa

This repo uses onnxruntime and does not depend on libtorch.

Onnxruntime Installation

git clone --recursive --branch v1.12.1 https://github.com/Microsoft/onnxruntime
cd onnxruntime
./build.sh \
    --config RelWithDebInfo \
    --build_shared_lib \
    --build_wheel \
    --skip_tests \
    --parallel 16
cd build/Linux/RelWithDebInfo
sudo make install
export LD_LIBRARY_PATH=/path/to/onnxruntime/build/Linux/RelWithDebInfo:$LD_LIBRARY_PATH

Usage

git clone https://github.com/k2-fsa/sherpa-onnx
cd sherpa-onnx
mkdir build
cd build
cmake -DONNXRUNTIME_ROOTDIR=/path/to/onnxruntime \
      -DKALDI_NATIVE_IO_INSTALL_PREFIX=/path/to/kaldi_native_io ..
make
./bin/sherpa-onnx path/to/encoder.onnx \
                  path/to/decoder.onnx \
                  path/to/joiner.onnx \
                  path/to/joiner_encoder_proj.onnx \
                  path/to/joiner_decoder_proj.onnx \
                  path/to/tokens.txt \
                  greedy \
                  path/to/audio.wav

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • CMake 63.0%
  • C++ 37.0%