diff --git a/default.nix b/default.nix index 199ddcc..4c310f1 100644 --- a/default.nix +++ b/default.nix @@ -1,4 +1,4 @@ -{ lib, python311Packages }: +{ lib, python311Packages, pkgs }: with python311Packages; let # Stripped down version of the tts package (original is broken and needs cuda) @@ -15,6 +15,8 @@ let }; doCheck = false; + nativeBuildInputs = [ pkgs.espeak-ng ]; + dependencies = [ cython numpy @@ -34,6 +36,7 @@ let jamo jieba pypinyin + pkgs.espeak ]; }; in diff --git a/module.nix b/module.nix index 78e898d..74faaf6 100644 --- a/module.nix +++ b/module.nix @@ -96,11 +96,11 @@ in WorkingDirectory = cfg.cache-dir; }; script = '' - ${cfg.package}/bin/mena-tts + ${cfg.package}/bin/mensa_to_speech ${cfg.package}/bin/fm_feed_wav --local-addr ${cfg.local-address} \ --local-port ${cfg.local-port} \ - --local-addr ${cfg.local-address} \ - --local-port ${cfg.local-port} \ + --remote-addr ${cfg.remote-address} \ + --remote-port ${cfg.remote-port} \ --wav mensa.wav ''; };