add sattelite only option for wyoming
This commit is contained in:
@@ -76,7 +76,10 @@
|
||||
nh.enable = true;
|
||||
|
||||
ollama.enable = true;
|
||||
wyoming.enable = true;
|
||||
wyoming = {
|
||||
enable = true;
|
||||
satteliteOnly = true;
|
||||
};
|
||||
virtualization.homeassistant = {
|
||||
enable = true;
|
||||
configvol = "/etc/homeassistant/config:/config";
|
||||
|
||||
@@ -1,9 +1,15 @@
|
||||
{ config, lib, ... }: {
|
||||
|
||||
options.sysconfig.opts.wyoming.enable = lib.options.mkOption {
|
||||
options.sysconfig.opts.wyoming = {
|
||||
enable = lib.options.mkOption {
|
||||
type = lib.types.bool;
|
||||
default = false;
|
||||
};
|
||||
satelliteOnly = lib.options.mkOption {
|
||||
type = lib.types.bool;
|
||||
default = false;
|
||||
};
|
||||
};
|
||||
|
||||
config = lib.mkIf config.sysconfig.opts.wyoming.enable {
|
||||
|
||||
@@ -11,14 +17,14 @@
|
||||
|
||||
piper = {
|
||||
|
||||
servers.piper = {
|
||||
servers.piper = lib.mkIf (!config.sysconfig.opts.wyoming.satelliteOnly) {
|
||||
enable = true;
|
||||
voice = "en-us-ryan-medium";
|
||||
uri = "tcp://0.0.0.0:11435";
|
||||
};
|
||||
};
|
||||
|
||||
openwakeword = {
|
||||
openwakeword = lib.mkIf (!config.sysconfig.opts.wyoming.satelliteOnly) {
|
||||
enable = true;
|
||||
uri = "tcp://0.0.0.0:11432";
|
||||
preloadModels = [
|
||||
@@ -32,7 +38,7 @@
|
||||
];
|
||||
};
|
||||
|
||||
faster-whisper = {
|
||||
faster-whisper = lib.mkIf (!config.sysconfig.opts.wyoming.satelliteOnly) {
|
||||
servers.whisper = {
|
||||
enable = true;
|
||||
#device = "cuda";
|
||||
|
||||
Reference in New Issue
Block a user