aboutsummaryrefslogtreecommitdiff
path: root/.scripts/voice
diff options
context:
space:
mode:
authorMarvin Borner2022-11-01 14:13:08 +0100
committerMarvin Borner2022-11-01 14:13:08 +0100
commit29c894db157e9b2bb2a392e0abb83ac700a839d5 (patch)
tree1e630bfabf1d94b61a88ab7b6e8b631113b6f7fd /.scripts/voice
parent600de714ba13c1ccd54357554898db909de5af81 (diff)
sync
Diffstat (limited to '.scripts/voice')
-rwxr-xr-x.scripts/voice19
1 files changed, 19 insertions, 0 deletions
diff --git a/.scripts/voice b/.scripts/voice
new file mode 100755
index 0000000..7d3d754
--- /dev/null
+++ b/.scripts/voice
@@ -0,0 +1,19 @@
+#!/bin/sh
+TEMP=$(mktemp)
+while sleep 1; do
+ tput sc
+ tput cup 0 0
+ cat "${TEMP}" | tail -n1
+ tput rc
+done &
+while true; do
+ VOICE=$(
+ dialog --title "Voice list" --stdout --no-ok --no-cancel --no-tags --menu "Select which voice modification you want to use." 0 0 0 \
+ "-d -d pitch 700 contrast 100 echo 0 1 20 0.4" "child" \
+ "-d -d pitch -200 contrast 100 echo 0 1 20 0.4" "young adult" \
+ "-d -d pitch -500 contrast 100 echo 0 1 20 0.4" "old man"
+ )
+ kill $APP_PID
+ sox $VOICE 1>/dev/null 2>"${TEMP}" &
+ export APP_PID=$!
+done