From 332b1f231992db802f35038bf86722cbdd77680e Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Thu, 6 Nov 2025 02:23:09 +0100 Subject: [PATCH] wyoming-piper: 2.0.0 -> 2.1.1 https://github.com/rhasspy/wyoming-piper/blob/v2.1.2/CHANGELOG.md --- .../home-automation/wyoming/piper.nix | 23 ++++++++++++++----- pkgs/by-name/wy/wyoming-piper/package.nix | 6 ++--- 2 files changed, 20 insertions(+), 9 deletions(-) diff --git a/nixos/modules/services/home-automation/wyoming/piper.nix b/nixos/modules/services/home-automation/wyoming/piper.nix index e21b4f881e7f..6c7441399ecd 100644 --- a/nixos/modules/services/home-automation/wyoming/piper.nix +++ b/nixos/modules/services/home-automation/wyoming/piper.nix @@ -42,6 +42,20 @@ in options = { enable = mkEnableOption "Wyoming Piper server"; + zeroconf = { + enable = mkEnableOption "zeroconf discovery" // { + default = true; + }; + + name = mkOption { + type = str; + default = "piper"; + description = '' + The advertised name for zeroconf discovery. + ''; + }; + }; + voice = mkOption { type = str; example = "en-us-ryan-medium"; @@ -95,10 +109,6 @@ in apply = toString; }; - streaming = mkEnableOption "audio streaming on sentence boundaries" // { - default = true; - }; - useCUDA = mkOption { type = bool; default = pkgs.config.cudaSupport; @@ -168,8 +178,9 @@ in "--noise-w-scale" options.noiseWidth ] - ++ lib.optionals options.streaming [ - "--streaming" + ++ lib.optionals options.zerconf.enable [ + "--zeroconf" + options.zeroconf.name ] ++ lib.optionals options.useCUDA [ "--use-cuda" diff --git a/pkgs/by-name/wy/wyoming-piper/package.nix b/pkgs/by-name/wy/wyoming-piper/package.nix index 0bad3b4ec635..f69318c03b1a 100644 --- a/pkgs/by-name/wy/wyoming-piper/package.nix +++ b/pkgs/by-name/wy/wyoming-piper/package.nix @@ -7,14 +7,14 @@ python3Packages.buildPythonApplication rec { pname = "wyoming-piper"; - version = "2.0.0"; + version = "2.1.2"; pyproject = true; src = fetchFromGitHub { owner = "rhasspy"; repo = "wyoming-piper"; - rev = "a9bedf7947b6813807caa9eba22c745cad68e5c1"; - hash = "sha256-Ld+UZguvtVig+g4hepLnC0PEYU/yST4cpI5bLfeTVkw="; + tag = "v${version}"; + hash = "sha256-j6QvGChAkASKdD+4XqIwC6UWdhi5oMDfYmSk6kvRrNE="; }; build-system = with python3Packages; [