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 = ""; 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 ]; 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 ]; 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 ];