Repository navigation
Fix #602: install.sh auto-installs ONNX Runtime for live mode STT - #604
Conversation
macOS: brew install onnxruntime Linux: libonnxruntime-dev via apt Without this, Silero VAD can't load and live mode has no speech-to-text.
There was a problem hiding this comment.
Pull request overview
Adds ONNX Runtime installation to the tower installer so live-mode STT (Silero VAD) works out-of-the-box on macOS and Linux.
Changes:
- macOS: auto-install
onnxruntimevia Homebrew if missing. - Linux/WSL: attempt to install
libonnxruntime(-dev)via apt whenldconfigcan’t findlibonnxruntime.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| fi | ||
|
|
||
| # ONNX Runtime — required for Silero VAD (live mode speech-to-text) | ||
| if ! ldconfig -p 2>/dev/null | grep -q libonnxruntime; then |
There was a problem hiding this comment.
The new ldconfig check only looks for system-wide libonnxruntime, but this script already installs ONNX Runtime into ~/.continuum/lib later in this same Linux branch. Because ldconfig won’t see user-space installs, this will typically append libonnxruntime-dev/libonnxruntime to needed[] even when the subsequent user-space install would satisfy the requirement, potentially causing unnecessary/fragile apt installs. Consider checking for $HOME/.continuum/lib/libonnxruntime.so (or the presence of ORT libs in the intended location) before adding apt packages, or make the install strategy mutually exclusive (apt OR user-space download) with a single source of truth.
| if ! ldconfig -p 2>/dev/null | grep -q libonnxruntime; then | |
| # Check both system-wide libs (ldconfig) and the user-space install location. | |
| if ! ldconfig -p 2>/dev/null | grep -q libonnxruntime && ! [ -f "$HOME/.continuum/lib/libonnxruntime.so" ]; then |
| # ONNX Runtime — required for Silero VAD (live mode speech-to-text) | ||
| if ! ldconfig -p 2>/dev/null | grep -q libonnxruntime; then | ||
| needed+=("libonnxruntime-dev" "libonnxruntime") | ||
| fi |
There was a problem hiding this comment.
PR description says Linux installs ONNX Runtime via apt, but this script still performs a separate user-space download/install of ONNX Runtime (~/.continuum/lib) later in the same linux|wsl block. Either update the PR description to reflect the dual-path behavior, or adjust the script to pick a single installation method (and ensure the runtime lookup logic matches that choice).
|
|
||
| # ONNX Runtime — required for Silero VAD (live mode speech-to-text) | ||
| if ! ldconfig -p 2>/dev/null | grep -q libonnxruntime; then | ||
| needed+=("libonnxruntime-dev" "libonnxruntime") |
There was a problem hiding this comment.
Installing both libonnxruntime-dev and libonnxruntime looks heavier than necessary for this script’s usage: the runtime only needs the shared library, and this installer otherwise treats ONNX Runtime as a runtime dependency (it even copies libonnxruntime* into ~/.continuum/lib). If you keep the apt-based path, consider installing only the runtime package unless you’ve confirmed headers/static libs are required for the build on your target distros.
| needed+=("libonnxruntime-dev" "libonnxruntime") | |
| needed+=("libonnxruntime") |
Problem
ONNX Runtime required for Silero VAD (live mode STT) but not installed automatically.
Fix
brew install onnxruntimelibonnxruntime-devvia aptTest