feat: add wyoming

This commit is contained in:
oddlama 2025-01-26 21:43:24 +01:00
parent 8d654ae945
commit 4c10c73df0
No known key found for this signature in database
GPG key ID: 14EFE510775FE39A
5 changed files with 587 additions and 1 deletions

View file

@ -0,0 +1,40 @@
{
disabledModules = [
"services/home-automation/wyoming/faster-whisper.nix"
"services/home-automation/wyoming/piper.nix"
];
imports = [
(builtins.trace "remove after next flake update" ./wfw.nix)
(builtins.trace "remove after next flake update" ./pip.nix)
];
environment.persistence."/persist".directories = [
{
directory = "/var/lib/private/wyoming";
mode = "0700";
}
];
services.wyoming.faster-whisper = {
servers.hass = {
enable = true;
# see https://github.com/rhasspy/rhasspy3/blob/master/programs/asr/faster-whisper/script/download.py
model = "base-int8";
language = "de";
uri = "tcp://0.0.0.0:10300";
device = "cpu";
};
};
services.wyoming.piper = {
servers.hass = {
enable = true;
# https://rhasspy.github.io/piper-samples/
voice = "de_DE-thorsten-high";
uri = "tcp://0.0.0.0:10200";
};
};
# needs access to /proc/cpuinfo
# systemd.services."wyoming-faster-whisper-en".serviceConfig.ProcSubset = lib.mkForce "all";
}