add sattelite only option for wyoming

This commit is contained in:
2025-01-29 09:11:34 -06:00
parent 57e1bbf04d
commit 28095f9735
2 changed files with 16 additions and 7 deletions

View File

@@ -76,7 +76,10 @@
nh.enable = true; nh.enable = true;
ollama.enable = true; ollama.enable = true;
wyoming.enable = true; wyoming = {
enable = true;
satteliteOnly = true;
};
virtualization.homeassistant = { virtualization.homeassistant = {
enable = true; enable = true;
configvol = "/etc/homeassistant/config:/config"; configvol = "/etc/homeassistant/config:/config";

View File

@@ -1,9 +1,15 @@
{ config, lib, ... }: { { config, lib, ... }: {
options.sysconfig.opts.wyoming.enable = lib.options.mkOption { options.sysconfig.opts.wyoming = {
enable = lib.options.mkOption {
type = lib.types.bool; type = lib.types.bool;
default = false; default = false;
}; };
satelliteOnly = lib.options.mkOption {
type = lib.types.bool;
default = false;
};
};
config = lib.mkIf config.sysconfig.opts.wyoming.enable { config = lib.mkIf config.sysconfig.opts.wyoming.enable {
@@ -11,14 +17,14 @@
piper = { piper = {
servers.piper = { servers.piper = lib.mkIf (!config.sysconfig.opts.wyoming.satelliteOnly) {
enable = true; enable = true;
voice = "en-us-ryan-medium"; voice = "en-us-ryan-medium";
uri = "tcp://0.0.0.0:11435"; uri = "tcp://0.0.0.0:11435";
}; };
}; };
openwakeword = { openwakeword = lib.mkIf (!config.sysconfig.opts.wyoming.satelliteOnly) {
enable = true; enable = true;
uri = "tcp://0.0.0.0:11432"; uri = "tcp://0.0.0.0:11432";
preloadModels = [ preloadModels = [
@@ -32,7 +38,7 @@
]; ];
}; };
faster-whisper = { faster-whisper = lib.mkIf (!config.sysconfig.opts.wyoming.satelliteOnly) {
servers.whisper = { servers.whisper = {
enable = true; enable = true;
#device = "cuda"; #device = "cuda";