text appears in italics

main
Christos Angelopoulos 2022-04-25 01:50:59 +03:00
parent 7b510bfe0f
commit 98c49ecdf1
1 changed files with 4 additions and 4 deletions

View File

@ -72,7 +72,7 @@ do
Yellow="\033[1;33m"
bold=`tput bold`
normal=`tput sgr0`
italic="\x1b[3m"
while [[ $GO == false ]]
do
if [[ $BROWSE_NEXT == true ]]
@ -88,7 +88,7 @@ do
echo -e "╭──────────────────────────────────────┬───────────────────────────────────────╮
$BOXFIRSTLINE$BOXDURATION
╰──────────────────────────────────────┴───────────────────────────────────────╯
${Yellow}╭──────────────────────────────────────────────────────────────────────────────╮
${Yellow}${italic}╭──────────────────────────────────────────────────────────────────────────────╮
$BOXTEXT
╰──────────────────────────────────────────────────────────────────────────────╯${normal}
╭────────────────────────┬──────────────────────────┬──────────────────────────╮
@ -110,11 +110,11 @@ $BOXTEXT
;;
2) if [[ -e "$DIRECTORY""Sapo_""$NAME"/$ERROR_WAV ]];then killall mplayer > /dev/null 2>&1 ;mplayer -really-quiet "$DIRECTORY""Sapo_""$NAME"/$ERROR_WAV & else echo "There is no file ""$DIRECTORY""Sapo_""$NAME"/"$ERROR_WAV"".";fi
;;
4) killall mplayer > /dev/null 2>&1 ;read -p "Enter the corrected line to render: " s; if [[ -n $s ]]; then echo "Please wait..."; tts --text "$s" --out_path "$DIRECTORY""Sapo_""$NAME"/$ERROR_WAV > /dev/null 2>&1 ;mplayer -really-quiet "$DIRECTORY""Sapo_""$NAME"/$ERROR_WAV&fi
4) killall mplayer > /dev/null 2>&1 ;echo "Old line: "$TEXT_TO_CORRECT;read -p "Enter the corrected line to render: " s; if [[ -n $s ]]; then echo "Please wait..."; tts --text "$s" --out_path "$DIRECTORY""Sapo_""$NAME"/$ERROR_WAV > /dev/null 2>&1 ;mplayer -really-quiet "$DIRECTORY""Sapo_""$NAME"/$ERROR_WAV&fi
;;
5)killall mplayer > /dev/null 2>&1 ;sox -V3 "$DIRECTORY""Sapo_""$NAME"/$ERROR_WAV "$DIRECTORY""Sapo_""$NAME"/temp.wav silence 1 0.50 0.1% 1 0.5 0.1%;sox "$DIRECTORY""Sapo_""$NAME"/temp.wav "$DIRECTORY""Sapo_""$NAME"/$ERROR_WAV pad 0 0.5;rm "$DIRECTORY""Sapo_""$NAME"/temp.wav
;;
6)killall mplayer > /dev/null 2>&1 ;read -p "Enter the first half of line to render: " s1 ;read -p "Enter the second half of line to render: " s2 ;if [[ -n $s1 ]]&&[[ -n $s2 ]];then echo "Please wait..." ; tts --text "$s1" --out_path "$DIRECTORY""Sapo_""$NAME"/1temp.wav > /dev/null 2>&1 ; tts --text "$s2" --out_path "$DIRECTORY""Sapo_""$NAME"/2temp.wav > /dev/null 2>&1 ;sox "$DIRECTORY""Sapo_""$NAME"/1temp.wav "$DIRECTORY""Sapo_""$NAME"/2temp.wav "$DIRECTORY""Sapo_""$NAME"/$ERROR_WAV ; rm "$DIRECTORY""Sapo_""$NAME"/1temp.wav "$DIRECTORY""Sapo_""$NAME"/2temp.wav;mplayer -really-quiet "$DIRECTORY""Sapo_""$NAME"/$ERROR_WAV &fi
6)killall mplayer > /dev/null 2>&1 ;echo "Old line: "$TEXT_TO_CORRECT;read -p "Enter the first half of line to render: " s1 ;read -p "Enter the second half of line to render: " s2 ;if [[ -n $s1 ]]&&[[ -n $s2 ]];then echo "Please wait..." ; tts --text "$s1" --out_path "$DIRECTORY""Sapo_""$NAME"/1temp.wav > /dev/null 2>&1 ; tts --text "$s2" --out_path "$DIRECTORY""Sapo_""$NAME"/2temp.wav > /dev/null 2>&1 ;sox "$DIRECTORY""Sapo_""$NAME"/1temp.wav "$DIRECTORY""Sapo_""$NAME"/2temp.wav "$DIRECTORY""Sapo_""$NAME"/$ERROR_WAV ; rm "$DIRECTORY""Sapo_""$NAME"/1temp.wav "$DIRECTORY""Sapo_""$NAME"/2temp.wav;mplayer -really-quiet "$DIRECTORY""Sapo_""$NAME"/$ERROR_WAV &fi
;;
8)killall mplayer > /dev/null 2>&1 ; if [[ -e "$DIRECTORY""Sapo_""$NAME"/$ERROR_WAV ]];then rm "$DIRECTORY""Sapo_""$NAME"/$ERROR_WAV;echo "* $DIRECTORY""Sapo_""$NAME"/"$ERROR_WAV"" has been deleted."; else echo "* There is no file ""$DIRECTORY""Sapo_""$NAME"/"$ERROR_WAV"".
Already deleted?";fi;GO=true