- Introduced a new `wyoming.nix` file with service definitions for `faster-whisper` and `piper`. - Enabled TCP ports `10200` and `10300` in the firewall for service communication. - Updated SGX configuration to include `wyoming.nix` in system imports.
23 lines
474 B
Nix
23 lines
474 B
Nix
{ ... }:
|
|
{
|
|
services.wyoming = {
|
|
faster-whisper.servers."main" = {
|
|
enable = true;
|
|
language = "de";
|
|
model = "base"; # or "small"/"medium" for better accuracy
|
|
uri = "tcp://0.0.0.0:10300";
|
|
device = "cpu";
|
|
};
|
|
|
|
piper.servers."main" = {
|
|
enable = true;
|
|
voice = "de_DE-thorsten-medium"; # popular German voice
|
|
uri = "tcp://0.0.0.0:10200";
|
|
};
|
|
};
|
|
|
|
networking.firewall.allowedTCPPorts = [
|
|
10200
|
|
10300
|
|
];
|
|
}
|