Files
edge-tts/easy-playback.sh
2021-05-11 16:03:42 +03:00

8 lines
250 B
Bash
Executable File

#!/usr/bin/env bash
## To use this script you need to install
## edge-tts.py to a directory in your $PATH
## as executable and give it the name edge-tts
trap 'kill -- $(jobs -p) 2>/dev/null' EXIT
exec {fd}< <(edge-tts "${@}")
mpg123 -C "/dev/fd/$fd"