script
parent
213aba51ed
commit
bbd9e15489
Binary file not shown.
|
|
@ -22,14 +22,17 @@ main() {
|
|||
trap cleanup EXIT
|
||||
|
||||
for f in ./script.d/*.wav; do
|
||||
export f=$f
|
||||
if [ "$#" != "0" ]; then
|
||||
eval "$1"
|
||||
echo "> $1"
|
||||
bash -c "true; $1"
|
||||
else
|
||||
read -p "enter to play <$f>"
|
||||
fi
|
||||
mpv --no-video "$f" &
|
||||
export pid=${!}
|
||||
block_proc $pid
|
||||
break
|
||||
done
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ for f in ${@:-./script.d/*.txt}; do
|
|||
curl \
|
||||
-sS \
|
||||
-X GET \
|
||||
"http://localhost:15002/api/tts?voice=${VOICE:-"en-us/glados-glow_tts"}&text=$(urlencode $(cat $f))" \
|
||||
"http://localhost:15002/api/tts?voice=${VOICE:-"en-us/glados-glow_tts"}&text=$(urlencode $(cat $f))&lengthScale=${SPEED:-1.00}" \
|
||||
> ${f%.*}.wav
|
||||
echo $?
|
||||
done
|
||||
|
|
|
|||
Loading…
Reference in New Issue