wyoming-satellite: Installation error with 32bit OS (onxruntime)

Hi I use tutorial_2mic.md tutorial and I got an error when running this command : .venv/bin/pip3 install -f 'https://synesthesiam.github.io/prebuilt-apps/' -r requirements_vad.txt

ERROR: Could not find a version that satisfies the requirement onnxruntime<2,>=1.10.0 (from pysilero-vad) (from versions: none) ERROR: No matching distribution found for onnxruntime<2,>=1.10.0

How to fix this ? Thanks

About this issue

  • Original URL
  • State: open
  • Created 3 years ago
  • Reactions: 5
  • Comments: 30 (4 by maintainers)

Most upvoted comments

I’ve resolved the dependencies with VAD

I built with docker as armv6l

FROM balenalib/raspberry-pi-debian-python:3.11.2
numpy==1.25.2
ONNXRUNTIME_VERSION="1.16.3"
CMAKE_VERSION="3.30.2"

onnx compile with...
./build.sh --config MinSizeRel --clean --update --build --build_shared_lib --enable_pybind --build_wheel --parallel $(nproc) --compile_no_warning_as_error --allow_running_as_root

Building, i exported the onnxruntime wheel and installed on the raspi 0 (and zeroconf to save time)

Notes:

  • Starting with ONNXRuntime 1.17 and newer, I’m having a compilation issue. I’ve not tried resolving it as it’s not needed (yet)
  • Numpy 1.26+ conflicts with flatbuffer, so i locked it in

After finishing everything, I’m thinking of testing running docker on the Raspi 0w. I anticipate the overhead is negligible enough and therefore our environment can be stable.

Edit: MircroCenter changed the RasPi 0W to be one-per-customer. Given it’s the same price as the 02W now, I don’t intend to provide any continuous releases.

If VAD is the only requirement for a 64bit OS (and assuming the Pi Zero 1 has the compute power) it should be possible to run an always streaming satellite or do local wake word detection (which doesn’t seem to use this library), with some light modification in the code.

I’ll try to get a spare SD card to run a 32bit OS and test.

Is there any update on availability for 32 bit OS? Thanks

I built some wheels and stored them here for 32bit arm (v6); assuming that’s what you’re wanting. If not, lmk.

https://github.com/Joldiges/Wyoming-ARMv6-Deps

So i guess the way forward is not using armv6 hardware?

I wouldn’t give up hope.

As far as I see it, most “issues” are just missing official support and binaries (such as the onnxruntime wheel).

I think the path forward is someone needs to keep some CI/CD pipelines open. I’m currently 93% done compiling a onnxruntime wheel for the ArmV6 architecture via Docker. If I successfully get this built, then I’ll have a starting point for continuous building. With CCache, builds should take less than 10 hours 😉 after the first build. image

Once everything is done, perhaps we can release a stable-ish docker image to run on the RasPi 0w. My understanding is the cpu overhead is negligible anyways. This would stop misc updates from breaking people’s satellites until there is a stable image update. 🤷‍♂️

I’ve tested with my zero w by installing just the requirements.txt and it does work since I’m using porcupine for local wake word detection. No vad is required in my case. I also tried with audio enhancement but it was crashing when launching with the 2 options to enhance (–mic-auto-gain and –mic-noise-suppression). I recompiled the lib directly on the pi and replace it with this command (I’ve attached the file): .venv/bin/pip3 install --upgrade --force-reinstall webrtc_noise_gain-1.2.3-cp39-cp39-linux_armv6l.whl

And I was able to reuse the command for audio enhancements. Hope it could help 😉

webrtc_noise_gain-1.2.3-cp39-cp39-linux_armv6l.whl.zip