wyoming-piper: fix voice test
This commit is contained in:
parent
74917217ab
commit
45c366c14c
1 changed files with 51 additions and 42 deletions
|
|
@ -97,48 +97,57 @@ let
|
|||
# };
|
||||
# };
|
||||
|
||||
voice = {
|
||||
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"
|
||||
];
|
||||
};
|
||||
voice = { config, ... }: {
|
||||
# For now, verifying the packages can build is good enough.
|
||||
environment.systemPackages = [
|
||||
config.services.wyoming.piper.package
|
||||
config.services.wyoming.openwakeword.package
|
||||
config.services.wyoming.faster-whisper.package
|
||||
];
|
||||
|
||||
# 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
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue