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
Yunusemre
2022-09-23 14:27:10 +0000
Browse Files
Options
Browse Files
Download
Plain Diff
Committed by
GitHub
2022-09-23 14:27:10 +0000
Commit
d9b84d552644ea5f90cae5858a1006c0b12c3564
d9b84d55
2 parents
98b7c268
51d1c858
Merge pull request #6 from EmreOzkose/master
adding usage and onnxruntime instructions to README
隐藏空白字符变更
内嵌
并排对比
正在显示
2 个修改的文件
包含
36 行增加
和
1 行删除
README.md
cmake/kaldi-native-fbank.cmake
README.md
查看文件 @
d9b84d5
...
...
@@ -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
```
...
...
cmake/kaldi-native-fbank.cmake
查看文件 @
d9b84d5
...
...
@@ -3,7 +3,7 @@ function(download_kaldi_native_fbank)
# FetchContent is available since 3.11,
# we've copied it to ${CMAKE_SOURCE_DIR}/cmake/Modules
# so that it can be used in lower CMake versions.
message
(
STATUS
"Use FetchContent provided by sherpa-
ncnn
"
)
message
(
STATUS
"Use FetchContent provided by sherpa-
onnx
"
)
list
(
APPEND CMAKE_MODULE_PATH
${
CMAKE_SOURCE_DIR
}
/cmake/Modules
)
endif
()
...
...
请
注册
或
登录
后发表评论