27 lines
571 B
Nix
Executable File
27 lines
571 B
Nix
Executable File
{ config, lib, namespace, ... }:
|
|
with lib;
|
|
let
|
|
cfg = config.${namespace}.services.wyoming;
|
|
in
|
|
{
|
|
imports = [ ./options.nix ];
|
|
|
|
config = mkIf cfg.enable {
|
|
services.wyoming = {
|
|
faster-whisper.servers.hass-whisper = {
|
|
enable = true;
|
|
useTransformers = false;
|
|
device = "cuda";
|
|
language = "en";
|
|
model = "distil-large-v3";
|
|
uri = "tcp://0.0.0.0:10300";
|
|
};
|
|
|
|
piper.servers.hass-piper = {
|
|
enable = true;
|
|
voice = "en-us-ryan-high";
|
|
uri = "tcp://0.0.0.0:10200";
|
|
};
|
|
};
|
|
};
|
|
} |