mirror of
https://github.com/oddlama/nix-config.git
synced 2025-10-11 07:10:39 +02:00
feat: add wyoming
This commit is contained in:
parent
8d654ae945
commit
4c10c73df0
5 changed files with 587 additions and 1 deletions
40
hosts/sausebiene/wyoming.nix
Normal file
40
hosts/sausebiene/wyoming.nix
Normal 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";
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue