wyoming-piper: fix voice test

This commit is contained in:
ibizaman 2025-09-01 20:50:03 +02:00
parent ecf4630fe4
commit b4a3a32229

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" = {
enable = true;
voice = "en_GB-alba-medium";
uri = "tcp://0.0.0.0:10201";
speaker = 0;
};
};
shb.home-assistant.voice.speech-to-text = {
"tiny-fr" = {
enable = true;
model = "base-int8";
language = "fr";
uri = "tcp://0.0.0.0:10300";
device = "cpu";
};
"tiny-en" = {
enable = true;
model = "base-int8";
language = "en";
uri = "tcp://0.0.0.0:10301";
device = "cpu";
};
};
shb.home-assistant.voice.wakeword = {
enable = true;
uri = "tcp://127.0.0.1:10400";
preloadModels = [
"alexa"
"hey_jarvis"
"hey_mycroft"
"hey_rhasspy"
"ok_nabu"
]; ];
};
# TODO: enable this back. The issue id the services cannot talk to the internet
# to download the models so they fail to start..
# shb.home-assistant.voice.text-to-speech = {
# "fr" = {
# enable = true;
# voice = "fr-siwis-medium";
# uri = "tcp://0.0.0.0:10200";
# speaker = 0;
# };
# "en" = {
# enable = true;
# voice = "en_GB-alba-medium";
# uri = "tcp://0.0.0.0:10201";
# speaker = 0;
# };
# };
# shb.home-assistant.voice.speech-to-text = {
# "tiny-fr" = {
# enable = true;
# model = "base-int8";
# language = "fr";
# uri = "tcp://0.0.0.0:10300";
# device = "cpu";
# };
# "tiny-en" = {
# enable = true;
# model = "base-int8";
# language = "en";
# uri = "tcp://0.0.0.0:10301";
# device = "cpu";
# };
# };
# 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
{ {