Author: Adam Evyčędo <git@apiote.xyz>
tts
.config/sh/functions | 9 +++++++++
diff --git a/.config/sh/functions b/.config/sh/functions index 18566d564eadfaabe3a7142e02d3576d4d190599..ab69cd60615b80b54110da7716cd049f38e6d16a 100644 --- a/.config/sh/functions +++ b/.config/sh/functions @@ -1340,4 +1340,13 @@ if [ -e /tmp/swaybar/pipe ] && [ "$mpv_count" -eq 0 ] then printf "bluetooth|%s\n" "$(render_bar_bluetooth)" >/tmp/swaybar/pipe fi +} + +say() { + if [ -z "$1" ] + then + larynx -m /usr/share/larynx2/en/gb/northern_english_male/en_GB-northern_english_male-medium.onnx + else + echo "$1" | larynx -m /usr/share/larynx2/en/gb/northern_english_male/en_GB-northern_english_male-medium.onnx + fi } \ No newline at end of file