Skip to content

Commit 11d81a4

Browse files
committed
fix: install ONNX Runtime to resolve protobuf symbol conflicts
1 parent 8d504d7 commit 11d81a4

File tree

2 files changed

+24
-1
lines changed

2 files changed

+24
-1
lines changed

.github/workflows/release.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,21 @@ jobs:
6060
libopenblas-dev \
6161
glslc
6262
63+
- name: Install ONNX Runtime
64+
run: |
65+
ONNX_VERSION=1.20.0
66+
wget https://github.com/microsoft/onnxruntime/releases/download/v${ONNX_VERSION}/onnxruntime-linux-x64-${ONNX_VERSION}.tgz
67+
tar -xzf onnxruntime-linux-x64-${ONNX_VERSION}.tgz
68+
sudo cp -r onnxruntime-linux-x64-${ONNX_VERSION}/include/* /usr/local/include/
69+
sudo cp -r onnxruntime-linux-x64-${ONNX_VERSION}/lib/* /usr/local/lib/
70+
sudo ldconfig
71+
6372
- name: Build release binary
6473
env:
6574
BLAS_INCLUDE_DIRS: /usr/include/x86_64-linux-gnu
6675
OPENBLAS_PATH: /usr
76+
ORT_STRATEGY: system
77+
ORT_LIB_LOCATION: /usr/local/lib
6778
run: cargo build --release --verbose
6879

6980
- name: Run tests

README.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,16 @@ Sonori needs models to function properly, depending on the selected backend:
120120
### Additional Requirements
121121

122122
- **ONNX Runtime**: Required for the Silero VAD model
123+
- **Ubuntu/Debian**: Not available in standard repos. Download from [GitHub releases](https://github.com/microsoft/onnxruntime/releases):
124+
```bash
125+
ONNX_VERSION=1.20.0
126+
wget https://github.com/microsoft/onnxruntime/releases/download/v${ONNX_VERSION}/onnxruntime-linux-x64-${ONNX_VERSION}.tgz
127+
tar -xzf onnxruntime-linux-x64-${ONNX_VERSION}.tgz
128+
sudo cp -r onnxruntime-linux-x64-${ONNX_VERSION}/include/* /usr/local/include/
129+
sudo cp -r onnxruntime-linux-x64-${ONNX_VERSION}/lib/* /usr/local/lib/
130+
sudo ldconfig
131+
```
132+
- **NixOS**: Included in development environment via `nix develop`
123133
- **CTranslate2**: Used for CTranslate2 backend inference
124134
- **whisper-rs**: Used for Whisper.cpp backend inference
125135
- **OpenBLAS**: Required for Whisper.cpp CPU optimization. For better performance on modern CPUs, ensure this is installed
@@ -187,7 +197,9 @@ sudo apt install build-essential portaudio19-dev libclang-dev pkg-config wl-copy
187197
libopenblas-dev glslc
188198
```
189199

190-
**Ubuntu 22.04:** See note above about glslc availability
200+
Then install ONNX Runtime (see Additional Requirements section above).
201+
202+
**Ubuntu 22.04:** See notes above about glslc availability and ONNX Runtime installation
191203

192204
#### NixOS
193205
```bash

0 commit comments

Comments
 (0)