@@ -55,7 +55,7 @@ The Python build script automatically:
5555- Builds Python extension module in ` lib/ ` folder with CMake
5656- Creates necessary symlink to ONNX model file in ` onnx_model/ `
5757- Copies demo script to build directory for easy testing
58- - All artifacts are consolidated in ` build-python/ `
58+ - All artifacts are consolidated in ` build-linux- python/ `
5959
6060Auto-detection paths for ONNX Runtime.
6161- x86_64: ` $HOME/onnxruntime-linux-x64-1.22.0 `
@@ -64,15 +64,15 @@ For a different ONNX Runtime versions, use `--ort-path` option.
6464
6565Inspect the Python extension module.
6666``` bash
67- ls build-python/lib/
67+ ls build-linux- python/lib/
6868```
6969``` console
7070ten_vad_python.cpython-312-aarch64-linux-gnu.so
7171```
7272
7373Test the import in the build directory.
7474``` bash
75- cd build-python
75+ cd build-linux- python
7676python3 -c ' import sys; sys.path.insert(0, "lib"); import ten_vad_python; print("Import success!")'
7777```
7878
@@ -82,7 +82,7 @@ Runs from the build directory. The demo requires `numpy`, which is already
8282installed in the virtual environment created by the build script.
8383``` bash
8484cd
85- cd ten-vad/examples_onnx/build-python
85+ cd ten-vad/examples_onnx/build-linux- python
8686source ./venv/bin/activate
8787
8888python3 ten_vad_demo.py ../../examples/s0724-s0730.wav out-python.txt
@@ -96,7 +96,7 @@ python3 ten_vad_demo.py ../../examples/s0724-s0730.wav out-python-threshold.txt
9696### Porting the demo
9797
9898Create a new folder and copy three artifacts.
99- * ` lib/ ` folder from ` build-python `
99+ * ` lib/ ` folder from ` build-linux- python `
100100* ` onnx_model/ ` folder from ` src `
101101* ` ten_vad_demo.py ` script from ` examples_onnx `
102102
@@ -151,10 +151,10 @@ import sys
151151import os
152152import numpy as np # For audio handling
153153
154- # Add lib directory to Python path (from build-python/ directory)
154+ # Add lib directory to Python path (from build-linux- python/ directory)
155155sys.path.insert(0 , " lib" )
156156# Or from examples_onnx/ directory:
157- # sys.path.insert(0, os.path.join("build-python", "lib"))
157+ # sys.path.insert(0, os.path.join("build-linux- python", "lib"))
158158
159159import ten_vad_python
160160
@@ -179,7 +179,7 @@ print(f"Is voice: {is_voice}")
179179Python usage example ` ten_vad_demo.py ` requires the extracted ONNX Runtime
180180folder and these files to run on Linux ARM64 with Python 3.12.
181181``` console
182- examples_onnx/build-python
182+ examples_onnx/build-linux- python
183183├── lib
184184│ └── ten_vad_python.cpython-312-aarch64-linux-gnu.so
185185├── onnx_model -> ../../src/onnx_model
0 commit comments