From ce9bb61f7fc1482cf3315b322ed76e543c5816ad Mon Sep 17 00:00:00 2001 From: matt1432 Date: Sun, 15 Dec 2024 21:50:55 -0500 Subject: [PATCH] fix(wyoming): get rid of onnx error --- .../wyoming-plus/pkgs/wyoming-openwakeword.nix | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/nixosModules/wyoming-plus/pkgs/wyoming-openwakeword.nix b/nixosModules/wyoming-plus/pkgs/wyoming-openwakeword.nix index 2453e2d4..2215993a 100644 --- a/nixosModules/wyoming-plus/pkgs/wyoming-openwakeword.nix +++ b/nixosModules/wyoming-plus/pkgs/wyoming-openwakeword.nix @@ -3,13 +3,14 @@ This package uses a `wyoming-openwakeword` fork that makes use of the upstream `openwakeword` instead of a fork: https://github.com/rhasspy/wyoming-openwakeword/pull/27 */ { - fetchFromGitHub, lib, + fetchFromGitHub, + onnxruntime, openwakeword, python3Packages, ... }: let - inherit (lib) attrValues; + inherit (lib) attrValues makeLibraryPath; in python3Packages.buildPythonApplication { pname = "wyoming-openwakeword"; @@ -19,7 +20,6 @@ in src = fetchFromGitHub { owner = "rhasspy"; repo = "wyoming-openwakeword"; - # rev = "synesthesiam-20240627-openwakeword"; rev = "324d669645a778439c5392d9e287a763ead3cf4c"; hash = "sha256-69oR2LHiUfx8j39nWp7XhG5xTvmOoPCLjSlH1CFvavo="; }; @@ -48,6 +48,11 @@ in "wyoming_openwakeword" ]; + # Native onnxruntime lib used by Python module onnxruntime can't find its other libs without this + makeWrapperArgs = [ + ''--prefix LD_LIBRARY_PATH : "${makeLibraryPath [onnxruntime]}"'' + ]; + meta = { description = "Open source voice assistant toolkit for many human languages"; homepage = "https://github.com/rhasspy/wyoming-openwakeword";