diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000..740cf02 Binary files /dev/null and b/.DS_Store differ diff --git a/larynx.d/.DS_Store b/larynx.d/.DS_Store new file mode 100644 index 0000000..cd3bb39 Binary files /dev/null and b/larynx.d/.DS_Store differ diff --git a/larynx.d/batch_play_wav.sh b/larynx.d/batch_play_wav.sh index 7f0d312..c7968b3 100644 --- a/larynx.d/batch_play_wav.sh +++ b/larynx.d/batch_play_wav.sh @@ -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 } diff --git a/larynx.d/batch_txt_to_wav.sh b/larynx.d/batch_txt_to_wav.sh index 97d9270..5dc886d 100644 --- a/larynx.d/batch_txt_to_wav.sh +++ b/larynx.d/batch_txt_to_wav.sh @@ -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