From 29c894db157e9b2bb2a392e0abb83ac700a839d5 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Tue, 1 Nov 2022 14:13:08 +0100 Subject: sync --- .scripts/voice | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100755 .scripts/voice (limited to '.scripts/voice') 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 -- cgit v1.2.3