Toggle navigation
Toggle navigation
此项目
正在载入...
Sign in
xuning
/
sherpaonnx
转到一个项目
Toggle navigation
项目
群组
代码片段
帮助
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
Yunus Emre Özköse
2022-09-23 17:20:40 +0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
5126c1f4ab10b010db9e60fff29f1d27d480d379
5126c1f4
1 parent
e62ef7ae
add onnxruntime installation and usage to README
隐藏空白字符变更
内嵌
并排对比
正在显示
1 个修改的文件
包含
35 行增加
和
0 行删除
README.md
README.md
查看文件 @
5126c1f
...
...
@@ -4,3 +4,38 @@ See <https://github.com/k2-fsa/sherpa>
This repo uses
[
onnxruntime
](
https://github.com/microsoft/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
```
...
...
请
注册
或
登录
后发表评论