mirror of
https://github.com/modelscope/FunASR
synced 2025-09-15 14:48:36 +08:00
update files.
This commit is contained in:
parent
6bb021d2b1
commit
724f9ba6a3
42
funasr/runtime/rapidpunc/readme.md
Normal file
42
funasr/runtime/rapidpunc/readme.md
Normal file
@ -0,0 +1,42 @@
|
||||
## Build on Linux X64
|
||||
|
||||
git clone https://github.com/alibaba-damo-academy/FunASR.git
|
||||
|
||||
cd FunASR/funasr/runtime/rapidpunc
|
||||
|
||||
mkdir build
|
||||
|
||||
cd build
|
||||
|
||||
\# dowload onnxruntime:
|
||||
|
||||
wget https://github.com/microsoft/onnxruntime/releases/download/v1.14.1/onnxruntime-linux-x64-1.14.1.tgz
|
||||
|
||||
|
||||
|
||||
tar zxf onnxruntime-linux-x64-1.14.1.tgz
|
||||
|
||||
cmake -DONNXRUNTIME_DIR=/data/linux/FunASR/funasr/runtime/rapidpunc/build/onnxruntime-linux-x64-1.14.1 ..
|
||||
|
||||
make -j16
|
||||
|
||||
|
||||
|
||||
Then get two files:
|
||||
|
||||
librapidpunc.so
|
||||
|
||||
rapidpunc_tester
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## run
|
||||
|
||||
rapidpunc_tester /path/to/model/dir /path/to/wave/file
|
||||
|
||||
|
||||
|
||||
in a model_dir, it should include: punc.yaml model.onnx
|
||||
|
||||
Loading…
Reference in New Issue
Block a user