Compare commits
2 commits
83ec9934ab
...
eff0a607d2
Author | SHA1 | Date | |
---|---|---|---|
eff0a607d2 | |||
b4006e545e |
|
@ -1,4 +1,4 @@
|
||||||
{ lib, python311Packages }:
|
{ lib, python311Packages, pkgs }:
|
||||||
with python311Packages;
|
with python311Packages;
|
||||||
let
|
let
|
||||||
# Stripped down version of the tts package (original is broken and needs cuda)
|
# Stripped down version of the tts package (original is broken and needs cuda)
|
||||||
|
@ -15,6 +15,8 @@ let
|
||||||
};
|
};
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
|
||||||
|
nativeBuildInputs = [ pkgs.espeak-ng ];
|
||||||
|
|
||||||
dependencies = [
|
dependencies = [
|
||||||
cython
|
cython
|
||||||
numpy
|
numpy
|
||||||
|
@ -34,6 +36,7 @@ let
|
||||||
jamo
|
jamo
|
||||||
jieba
|
jieba
|
||||||
pypinyin
|
pypinyin
|
||||||
|
pkgs.espeak
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
|
|
|
@ -96,11 +96,11 @@ in
|
||||||
WorkingDirectory = cfg.cache-dir;
|
WorkingDirectory = cfg.cache-dir;
|
||||||
};
|
};
|
||||||
script = ''
|
script = ''
|
||||||
${cfg.package}/bin/mena-tts
|
${cfg.package}/bin/mensa_to_speech
|
||||||
${cfg.package}/bin/fm_feed_wav --local-addr ${cfg.local-address} \
|
${cfg.package}/bin/fm_feed_wav --local-addr ${cfg.local-address} \
|
||||||
--local-port ${cfg.local-port} \
|
--local-port ${cfg.local-port} \
|
||||||
--local-addr ${cfg.local-address} \
|
--remote-addr ${cfg.remote-address} \
|
||||||
--local-port ${cfg.local-port} \
|
--remote-port ${cfg.remote-port} \
|
||||||
--wav mensa.wav
|
--wav mensa.wav
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue