wyoming-piper: fix voice test

This commit is contained in:
ibizaman 2025-09-01 20:50:03 +02:00 committed by Pierre Penninckx
parent 74917217ab
commit 45c366c14c

View file

@ -97,48 +97,57 @@ let
# }; # };
# }; # };
voice = { voice = { config, ... }: {
shb.home-assistant.voice.text-to-speech = { # For now, verifying the packages can build is good enough.
"fr" = { environment.systemPackages = [
enable = true; config.services.wyoming.piper.package
voice = "fr-siwis-medium"; config.services.wyoming.openwakeword.package
uri = "tcp://0.0.0.0:10200"; config.services.wyoming.faster-whisper.package
speaker = 0; ];
};
"en" = { # TODO: enable this back. The issue id the services cannot talk to the internet
enable = true; # to download the models so they fail to start..
voice = "en_GB-alba-medium"; # shb.home-assistant.voice.text-to-speech = {
uri = "tcp://0.0.0.0:10201"; # "fr" = {
speaker = 0; # enable = true;
}; # voice = "fr-siwis-medium";
}; # uri = "tcp://0.0.0.0:10200";
shb.home-assistant.voice.speech-to-text = { # speaker = 0;
"tiny-fr" = { # };
enable = true; # "en" = {
model = "base-int8"; # enable = true;
language = "fr"; # voice = "en_GB-alba-medium";
uri = "tcp://0.0.0.0:10300"; # uri = "tcp://0.0.0.0:10201";
device = "cpu"; # speaker = 0;
}; # };
"tiny-en" = { # };
enable = true; # shb.home-assistant.voice.speech-to-text = {
model = "base-int8"; # "tiny-fr" = {
language = "en"; # enable = true;
uri = "tcp://0.0.0.0:10301"; # model = "base-int8";
device = "cpu"; # language = "fr";
}; # uri = "tcp://0.0.0.0:10300";
}; # device = "cpu";
shb.home-assistant.voice.wakeword = { # };
enable = true; # "tiny-en" = {
uri = "tcp://127.0.0.1:10400"; # enable = true;
preloadModels = [ # model = "base-int8";
"alexa" # language = "en";
"hey_jarvis" # uri = "tcp://0.0.0.0:10301";
"hey_mycroft" # device = "cpu";
"hey_rhasspy" # };
"ok_nabu" # };
]; # shb.home-assistant.voice.wakeword = {
}; # enable = true;
# uri = "tcp://127.0.0.1:10400";
# preloadModels = [
# "alexa"
# "hey_jarvis"
# "hey_mycroft"
# "hey_rhasspy"
# "ok_nabu"
# ];
# };
}; };
in in
{ {