feat(home-assistant): setup assist pipeline with wyoming
Also switch to unstable home-assistant.
This commit is contained in:
parent
09f7db14c3
commit
c31a727501
2 changed files with 42 additions and 33 deletions
|
@ -1,38 +1,39 @@
|
|||
{ inputs, ... }:
|
||||
{ pkgs, inputs, ... }:
|
||||
|
||||
{
|
||||
# TODO they don't exist, so not disabling them
|
||||
/* disabledModules = [
|
||||
"services/audio/wyoming/piper.nix"
|
||||
"services/audio/wyoming/faster-whisper.nix"
|
||||
];
|
||||
*/
|
||||
|
||||
# TODO fails with infinite recursion, why?
|
||||
# TODO perhaps because of the `pkgs.unstable` override?
|
||||
imports = [
|
||||
"${inputs.nixpkgs-unstable}/nixos/modules/services/audio/wyoming/piper.nix"
|
||||
"${inputs.nixpkgs-unstable}/nixos/modules/services/audio/wyoming/faster-whisper.nix"
|
||||
|
||||
];
|
||||
|
||||
/* services.wyoming.piper.servers = {
|
||||
"en" = {
|
||||
enable = true;
|
||||
voice = "en_GB-alba-medium";
|
||||
uri = "tcp://0.0.0.0:10200";
|
||||
speaker = 0;
|
||||
};
|
||||
};
|
||||
nixpkgs.overlays = [
|
||||
(final: prev: {
|
||||
inherit (pkgs.unstable) wyoming-piper wyoming-faster-whisper piper-tts;
|
||||
})
|
||||
];
|
||||
|
||||
services.wyoming.faster-whisper.servers = {
|
||||
"tiny-en" = {
|
||||
enable = true;
|
||||
model = "tiny-int8";
|
||||
language = "en";
|
||||
uri = "tcp://0.0.0.0:10300";
|
||||
device = "cpu";
|
||||
};
|
||||
};
|
||||
*/
|
||||
services.wyoming.piper = {
|
||||
servers = {
|
||||
"en" = {
|
||||
enable = true;
|
||||
# see https://github.com/rhasspy/rhasspy3/blob/master/programs/tts/piper/script/download.py
|
||||
voice = "en-gb-southern_english_female-low";
|
||||
uri = "tcp://0.0.0.0:10200";
|
||||
speaker = 0;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
services.wyoming.faster-whisper = {
|
||||
servers = {
|
||||
"en" = {
|
||||
enable = true;
|
||||
# see https://github.com/rhasspy/rhasspy3/blob/master/programs/asr/faster-whisper/script/download.py
|
||||
model = "tiny-int8";
|
||||
language = "en";
|
||||
uri = "tcp://0.0.0.0:10300";
|
||||
device = "cpu";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue