add sattelite only option for wyoming
This commit is contained in:
@@ -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";
|
||||||
|
|||||||
@@ -1,8 +1,14 @@
|
|||||||
{ config, lib, ... }: {
|
{ config, lib, ... }: {
|
||||||
|
|
||||||
options.sysconfig.opts.wyoming.enable = lib.options.mkOption {
|
options.sysconfig.opts.wyoming = {
|
||||||
type = lib.types.bool;
|
enable = lib.options.mkOption {
|
||||||
default = false;
|
type = lib.types.bool;
|
||||||
|
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";
|
||||||
|
|||||||
Reference in New Issue
Block a user