37 lines
689 B
Nix
Executable File
37 lines
689 B
Nix
Executable File
{
|
|
config,
|
|
lib,
|
|
namespace,
|
|
pkgs,
|
|
...
|
|
}:
|
|
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 = lib.mkForce "cuda";
|
|
language = "en";
|
|
model = "distil-large-v3";
|
|
uri = "tcp://0.0.0.0:10300";
|
|
};
|
|
|
|
# piper = {
|
|
# package = pkgs.stable.wyoming-piper;
|
|
# servers.hass-piper = {
|
|
# enable = true;
|
|
# voice = "en-us-ryan-high";
|
|
# uri = "tcp://0.0.0.0:10200";
|
|
# };
|
|
# };
|
|
};
|
|
};
|
|
}
|