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.
This commit is contained in:
Martin Weinelt
2025-06-25 03:03:24 +02:00
parent ccd3c42d7f
commit 797f061205

View File

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