Unable to start with SileroVad
Closed this issue · 2 comments
Similiar to the other open issue I have a RPI 4 running the Pi OS Lite 64 bit 2023-05-03)
I am getting a similar error when starting with script/run --vad silero:
script/run --vad silero
usage: main.py [-h] --host HOST (--token TOKEN | --token-file TOKEN_FILE) [--port PORT] [--api-path API_PATH] [--pipeline PIPELINE] [--protocol {http,https}] [--mic-device MIC_DEVICE]
[--snd-device SND_DEVICE] [--mic-command MIC_COMMAND] [--snd-command SND_COMMAND] [--snd-command-sample-rate SND_COMMAND_SAMPLE_RATE] [--awake-sound AWAKE_SOUND]
[--done-sound DONE_SOUND] [--volume VOLUME] [--vad {disabled,webrtcvad,silero}] [--vad-model VAD_MODEL] [--vad-threshold VAD_THRESHOLD]
[--vad-trigger-level VAD_TRIGGER_LEVEL] [--vad-buffer-chunks VAD_BUFFER_CHUNKS] [--wake-buffer-seconds WAKE_BUFFER_SECONDS] [--noise-suppression {0,1,2,3,4}]
[--auto-gain {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31}] [--volume-multiplier VOLUME_MULTIPLIER]
[--wake-word {disabled,wyoming}] [--wake-word-id WAKE_WORD_ID] [--wyoming-host WYOMING_HOST] [--wyoming-port WYOMING_PORT] [--pulseaudio [PULSEAUDIO]]
[--ducking-volume DUCKING_VOLUME] [--echo-cancel] [--udp-mic UDP_MIC] [--udp-snd UDP_SND] [--udp-snd-sample-rate UDP_SND_SAMPLE_RATE]
[--debug-recording-dir DEBUG_RECORDING_DIR] [--debug]
main.py: error: the following arguments are required: --host
Traceback (most recent call last):
File "/home/hudav/homeassistant-satellite/script/run", line 13, in
subprocess.check_call(
File "/usr/lib/python3.9/subprocess.py", line 373, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/home/hudav/homeassistant-satellite/.venv/bin/python3', '-m', 'homeassistant_satellite', '--vad', 'silero']' returned non-zero exit status 2.
and for me the installation command went as such:
.venv/bin/pip3 install --find-links https://synesthesiam.github.io/prebuilt-apps/ .[silerovad]
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Looking in links: https://synesthesiam.github.io/prebuilt-apps/
Processing /home/hudav/homeassistant-satellite
Preparing metadata (setup.py) ... done
Requirement already satisfied: aiohttp==3.8.4 in ./.venv/lib/python3.9/site-packages (3.8.4)
WARNING: Cache entry deserialization failed, entry ignored
Collecting onnxruntime<2,>=1.10.0
Downloading onnxruntime-1.16.1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.metadata (4.1 kB)
Collecting numpy<1.26
Downloading numpy-1.25.2-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.metadata (5.6 kB)
Requirement already satisfied: attrs>=17.3.0 in ./.venv/lib/python3.9/site-packages (from aiohttp==3.8.4) (23.1.0)
Requirement already satisfied: charset-normalizer<4.0,>=2.0 in ./.venv/lib/python3.9/site-packages (from aiohttp==3.8.4) (3.3.2)
Requirement already satisfied: multidict<7.0,>=4.5 in ./.venv/lib/python3.9/site-packages (from aiohttp==3.8.4) (6.0.4)
Requirement already satisfied: async-timeout<5.0,>=4.0.0a3 in ./.venv/lib/python3.9/site-packages (from aiohttp==3.8.4) (4.0.3)
Requirement already satisfied: yarl<2.0,>=1.0 in ./.venv/lib/python3.9/site-packages (from aiohttp==3.8.4) (1.9.2)
Requirement already satisfied: frozenlist>=1.1.1 in ./.venv/lib/python3.9/site-packages (from aiohttp==3.8.4) (1.4.0)
Requirement already satisfied: aiosignal>=1.1.2 in ./.venv/lib/python3.9/site-packages (from aiohttp==3.8.4) (1.3.1)
Collecting coloredlogs (from onnxruntime<2,>=1.10.0)
Downloading https://www.piwheels.org/simple/coloredlogs/coloredlogs-15.0.1-py2.py3-none-any.whl (46 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 46.0/46.0 kB 190.1 kB/s eta 0:00:00
Collecting flatbuffers (from onnxruntime<2,>=1.10.0)
Downloading https://www.piwheels.org/simple/flatbuffers/flatbuffers-20181003210633-py2.py3-none-any.whl (14 kB)
Collecting packaging (from onnxruntime<2,>=1.10.0)
Downloading https://www.piwheels.org/simple/packaging/packaging-23.2-py3-none-any.whl (53 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 53.0/53.0 kB 223.0 kB/s eta 0:00:00
Collecting protobuf (from onnxruntime<2,>=1.10.0)
Downloading protobuf-4.25.0-cp37-abi3-manylinux2014_aarch64.whl.metadata (541 bytes)
Collecting sympy (from onnxruntime<2,>=1.10.0)
Downloading https://www.piwheels.org/simple/sympy/sympy-1.12-py3-none-any.whl (5.7 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 5.7/5.7 MB 716.8 kB/s eta 0:00:00
Requirement already satisfied: idna>=2.0 in ./.venv/lib/python3.9/site-packages (from yarl<2.0,>=1.0->aiohttp==3.8.4) (3.4)
Collecting humanfriendly>=9.1 (from coloredlogs->onnxruntime<2,>=1.10.0)
Downloading https://www.piwheels.org/simple/humanfriendly/humanfriendly-10.0-py2.py3-none-any.whl (89 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 89.9/89.9 kB 250.4 kB/s eta 0:00:00
Collecting mpmath>=0.19 (from sympy->onnxruntime<2,>=1.10.0)
Downloading https://www.piwheels.org/simple/mpmath/mpmath-1.3.0-py3-none-any.whl (536 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 536.2/536.2 kB 56.1 kB/s eta 0:00:00
Downloading numpy-1.25.2-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (14.2 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 14.2/14.2 MB 450.9 kB/s eta 0:00:00
Downloading onnxruntime-1.16.1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (5.6 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 5.6/5.6 MB ? eta 0:00:00
Downloading protobuf-4.25.0-cp37-abi3-manylinux2014_aarch64.whl (293 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 293.5/293.5 kB 61.1 kB/s eta 0:00:00
Building wheels for collected packages: homeassistant-satellite
Building wheel for homeassistant-satellite (setup.py) ... done
Created wheel for homeassistant-satellite: filename=homeassistant_satellite-2.3.1-py3-none-any.whl size=1540356 sha256=6267c65dc6c5bd9a2fd222c2d1ea3f1d4320133f6f3bc4f4fec9a09ec1de778a
Stored in directory: /home/hudav/.cache/pip/wheels/a3/d9/28/a95b4564da5747f3022ac784d5d5a3d00908abde74554a2d62
Successfully built homeassistant-satellite
Installing collected packages: mpmath, flatbuffers, sympy, protobuf, packaging, numpy, humanfriendly, coloredlogs, onnxruntime, homeassistant-satellite
Successfully installed coloredlogs-15.0.1 flatbuffers-20181003210633 homeassistant-satellite-2.3.1 humanfriendly-10.0 mpmath-1.3.0 numpy-1.25.2 onnxruntime-1.16.1 packaging-23.2 protobuf-4.25.0 sympy-1.12
I had this running on a version of bullseye (2023-02-21) arm64 but i didn't want the desktop so I was trying to move to a Lite. I have also tried this on the most recent version of Pi-OS that Pi Imager provides (64 bit as well) and same error occurs.
I also see that the issue with the other was that they were using 32 bit and needed a proper build of onnxruntime so i didn't think that was my issue due to being 64 bit
Edit: if it helps i also tried with webrtcvad and got very similiar results
Just tried it in my full startup script and it is working now, so weird...