summaryrefslogtreecommitdiffstats
path: root/lass
diff options
context:
space:
mode:
authorlassulus <git@lassul.us>2023-05-25 00:06:33 +0200
committerlassulus <git@lassul.us>2023-05-25 00:06:33 +0200
commitaade31e65bad45c567b64591b06be806a74fc31a (patch)
treef7911e87d62fc7cca4e390e1f762e28fcfbf7ae4 /lass
parent9fe6e5bb4f320876bff02bc75c51050d16593ad0 (diff)
l radio: use larynx tts
Diffstat (limited to 'lass')
-rw-r--r--lass/2configs/services/radio/news.nix10
1 files changed, 7 insertions, 3 deletions
diff --git a/lass/2configs/services/radio/news.nix b/lass/2configs/services/radio/news.nix
index 0dc711e6c..d726692d8 100644
--- a/lass/2configs/services/radio/news.nix
+++ b/lass/2configs/services/radio/news.nix
@@ -44,13 +44,17 @@ in
send_to_radio
gc_news
get_current_news
- pkgs.curl
pkgs.retry
+ pkgs.larynx
];
script = ''
set -efu
- retry -t 5 -d 10 -- newsshow |
- retry -t 5 -d 10 -- curl -fSsG http://tts.r/api/tts --data-urlencode 'text@-' |
+ retry -t 5 -d 10 -- newsshow | tr '\n' ' ' |
+ retry -t 5 -d 10 -- larynx --model ${pkgs.fetchzip {
+ url = "https://github.com/rhasspy/piper/releases/download/v0.0.2/voice-en-us-libritts-high.tar.gz";
+ hash = "sha256-jCoK4p0O7BuF0nr6Sfj40tpivCvU5M3GHKQRg1tfIO8=";
+ stripRoot = false;
+ }}/en-us-libritts-high.onnx -s $[ $RANDOM % 900 ] -f - |
retry -t 5 -d 10 -- send_to_radio
'';
startAt = "*:00:00";