From 437fb7bf2abd3b23ef5c15bfa964e9a17a43d2c5 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Wed, 25 Jun 2025 02:55:16 +0200 Subject: [PATCH 1/4] python3Packages.wyoming: 1.6.1 -> 1.7.1 https://github.com/rhasspy/wyoming/releases/tag/1.7.1 --- pkgs/development/python-modules/wyoming/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/wyoming/default.nix b/pkgs/development/python-modules/wyoming/default.nix index 0af67055c00b..46816f1c0f84 100644 --- a/pkgs/development/python-modules/wyoming/default.nix +++ b/pkgs/development/python-modules/wyoming/default.nix @@ -17,14 +17,14 @@ buildPythonPackage rec { pname = "wyoming"; - version = "1.6.1"; + version = "1.7.1"; pyproject = true; src = fetchFromGitHub { owner = "rhasspy"; repo = "wyoming"; tag = version; - hash = "sha256-Q7e4YSvVHpjyJQwsXTfyzMA1DKi71xiVDKWGWTh1l6w="; + hash = "sha256-jP2RLKjm79tb4lPbTp1zcDnRV0phn7I2qjxYpC6hqTM="; }; build-system = [ setuptools ]; From a431b599ef7078363dd5af0491e2f90d63eb3b58 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Wed, 25 Jun 2025 02:54:14 +0200 Subject: [PATCH 2/4] wyoming-piper: 1.5.4 -> 1.6.0 https://github.com/rhasspy/wyoming-piper/blob/v1.6.0/CHANGELOG.md --- pkgs/by-name/wy/wyoming-piper/package.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/wy/wyoming-piper/package.nix b/pkgs/by-name/wy/wyoming-piper/package.nix index 1a91f7380b32..1470dab1c42d 100644 --- a/pkgs/by-name/wy/wyoming-piper/package.nix +++ b/pkgs/by-name/wy/wyoming-piper/package.nix @@ -6,14 +6,14 @@ python3Packages.buildPythonApplication rec { pname = "wyoming-piper"; - version = "1.5.3"; + version = "1.6.0"; pyproject = true; src = fetchFromGitHub { owner = "rhasspy"; repo = "wyoming-piper"; tag = "v${version}"; - hash = "sha256-yPGiOF9RXhW7zjvFMi1UCXLyrWiqhJTvvIAtkYb9kBg="; + hash = "sha256-pVpCnrf/BnAeyfyf82i9Ga/2WQUs1qGceL9uJ99WddY="; }; build-system = with python3Packages; [ @@ -25,6 +25,7 @@ python3Packages.buildPythonApplication rec { ]; dependencies = with python3Packages; [ + regex wyoming ]; From ccd3c42d7fc8bf7757fde3133ab37fa37792c034 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Wed, 25 Jun 2025 02:58:30 +0200 Subject: [PATCH 3/4] wyoming-openwakeword: pin to python312 The latest tensorflow package is still not compatbile with python313. --- pkgs/by-name/wy/wyoming-openwakeword/package.nix | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/pkgs/by-name/wy/wyoming-openwakeword/package.nix b/pkgs/by-name/wy/wyoming-openwakeword/package.nix index 3bd4d66c7431..63ae5ea9dc49 100644 --- a/pkgs/by-name/wy/wyoming-openwakeword/package.nix +++ b/pkgs/by-name/wy/wyoming-openwakeword/package.nix @@ -1,9 +1,14 @@ { lib, - python3Packages, + python312Packages, fetchFromGitHub, }: +let + # tensorflow-bin unsupported on Python 3.13 + python3Packages = python312Packages; +in + python3Packages.buildPythonApplication rec { pname = "wyoming-openwakeword"; version = "1.10.0"; @@ -16,7 +21,7 @@ python3Packages.buildPythonApplication rec { hash = "sha256-5suYJ+Z6ofVAysoCdHi5b5K0JTYaqeFZ32Cm76wC5LU="; }; - nativeBuildInputs = with python3Packages; [ + build-systems = with python3Packages; [ setuptools ]; @@ -28,7 +33,7 @@ python3Packages.buildPythonApplication rec { "tflite-runtime-nightly" ]; - propagatedBuildInputs = with python3Packages; [ + dependencies = with python3Packages; [ tensorflow-bin wyoming ]; From 797f061205879ba8bfbef1e31d84881c086023c6 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Wed, 25 Jun 2025 03:03:24 +0200 Subject: [PATCH 4/4] nixos/wyoming/piper: enable streaming audio With wyoming-piper 1.6.0 we can enable streaming audio on sentence boundaries, which should improve the responsiveness. --- nixos/modules/services/home-automation/wyoming/piper.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/nixos/modules/services/home-automation/wyoming/piper.nix b/nixos/modules/services/home-automation/wyoming/piper.nix index bf14d4ce85c6..e97f99b89ce1 100644 --- a/nixos/modules/services/home-automation/wyoming/piper.nix +++ b/nixos/modules/services/home-automation/wyoming/piper.nix @@ -96,6 +96,10 @@ in apply = toString; }; + streaming = mkEnableOption "audio streaming on sentence boundaries" // { + default = true; + }; + extraArgs = mkOption { type = listOf str; default = [ ]; @@ -158,6 +162,9 @@ in "--noise-w" options.noiseWidth ] + ++ lib.optionals options.streaming [ + "--streaming" + ] ++ options.extraArgs ); CapabilityBoundingSet = "";