about summary refs log tree commit diff
path: root/nixos/modules/services/audio
diff options
context:
space:
mode:
authorIngolf Wagner <contact@ingolf-wagner.de>2023-08-25 09:30:34 +0200
committerIngolf Wagner <contact@ingolf-wagner.de>2023-08-25 09:48:46 +0200
commit7f2b8695603896819b09570a255d8c4f42274c47 (patch)
treec0b18326a93d9f9b3a0f6dfcd2fb4725e7f2cfb9 /nixos/modules/services/audio
parente11ab30361cb7b3d8030e0e609234aa73f443ff0 (diff)
downloadnixlib-7f2b8695603896819b09570a255d8c4f42274c47.tar
nixlib-7f2b8695603896819b09570a255d8c4f42274c47.tar.gz
nixlib-7f2b8695603896819b09570a255d8c4f42274c47.tar.bz2
nixlib-7f2b8695603896819b09570a255d8c4f42274c47.tar.lz
nixlib-7f2b8695603896819b09570a255d8c4f42274c47.tar.xz
nixlib-7f2b8695603896819b09570a255d8c4f42274c47.tar.zst
nixlib-7f2b8695603896819b09570a255d8c4f42274c47.zip
nixos/tts: fix error messages read before text
with a config like this :

```
services.tts = {
  servers = {
    english = {
      enable = true;
      port = 5300;
      model = "tts_models/en/ljspeech/vits"
    };
  };
};
```

You the WAVs tts creates contain an error message which will be read to
you before the text you typed in will be read to you.
This patch fixes that.
Diffstat (limited to 'nixos/modules/services/audio')
-rw-r--r--nixos/modules/services/audio/tts.nix1
1 files changed, 1 insertions, 0 deletions
diff --git a/nixos/modules/services/audio/tts.nix b/nixos/modules/services/audio/tts.nix
index 1a355c8ee39f..0d93224ec030 100644
--- a/nixos/modules/services/audio/tts.nix
+++ b/nixos/modules/services/audio/tts.nix
@@ -134,6 +134,7 @@ in
           ProtectProc = "invisible";
           ProcSubset = "pid";
           RestrictAddressFamilies = [
+            "AF_UNIX"
             "AF_INET"
             "AF_INET6"
           ];