From bd8a6fc5a3ad17200def4be226319e23ef7922be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABtan=20Trellu?= Date: Tue, 6 Oct 2026 18:25:08 -0400 Subject: [PATCH] fix: install the onnx-asr plugin on alpha only On testing the install does not fail, it succeeds by raising ovos-plugin-manager to 2.2.0, past the <2.0.0 that the channel's ovos-vad-plugin-noise 0.1.2 and ovos-vad-plugin-silero 0.0.5 accept. The arm64 listener then failed its pip check and testing was not published (run 37535956317). ovos-installer only configures local speech on alpha, so the other channels do not need the plugin at all. Co-Authored-By: Claude Opus 5.5 --- listener/Dockerfile | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/listener/Dockerfile b/listener/Dockerfile index f608f1f..78e2e19 100644 --- a/listener/Dockerfile +++ b/listener/Dockerfile @@ -56,11 +56,15 @@ RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \ && (uv pip install --prerelease=${UV_PRERELEASE} -c /tmp/constraints.txt "ovos-dinkum-listener[extras,onnx]" \ || uv pip install --prerelease=${UV_PRERELEASE} -c /tmp/constraints.txt "ovos-dinkum-listener[extras]" \ || echo "plugin extras unavailable on this channel; add plugins via listener.list") \ - # Speech recognition on the device, which ovos-installer configures when local speech - # is chosen. Like [onnx] it needs ovos-plugin-manager>=2, so stable skips it; onnx-asr - # downloads its models through huggingface_hub, which only its hub extra brings in. - && (uv pip install --prerelease=${UV_PRERELEASE} -c /tmp/constraints.txt "ovos-stt-plugin-onnx-asr" "onnx-asr[cpu,hub]" \ - || echo "onnx-asr STT plugin unavailable on this channel; add it via listener.list") \ + # Speech recognition on the device, which ovos-installer only configures on alpha. + # Alpha only: elsewhere the install succeeds by raising ovos-plugin-manager to 2.x, + # past what the channel's VAD plugins accept, and the image then fails pip check. + # onnx-asr downloads its models through huggingface_hub, which only its hub extra + # brings in. + && if [ "${OVOS_CHANNEL}" = "alpha" ]; then \ + uv pip install --prerelease=${UV_PRERELEASE} -c /tmp/constraints.txt "ovos-stt-plugin-onnx-asr" "onnx-asr[cpu,hub]" \ + || echo "onnx-asr STT plugin unavailable; add it via listener.list"; \ + fi \ && mkdir -p "/home/${USER}/.local/share/vosk" "/home/${USER}/.local/share/precise-lite" "/home/${USER}/.local/share/mycroft/listener" "/home/${USER}/.local/share/ovos_stt_plugin_onnxasr" \ && chown "${USER}:${USER}" -R "/home/${USER}" \ && apt-get --purge remove -y portaudio19-dev libpulse-dev build-essential python3-dev \