set parmStat to true repeat set tmpNUM to display dialog "시작 페이지 번호?" default answer "" with icon note buttons {"Cancel", "Continue"} default button "Continue" --> {button returned:"Continue", text returned:"3"} --display dialog "Hello, " & (text returned of startPG) & "." try set startPG to (text returned of tmpNUM) as number if startPG is greater […]
CentOS 7 : tts festival
# yum install festival festvox* # festival festival> (voice.list) (nitech_us_slt_arctic_hts nitech_us_rms_arctic_hts nitech_us_clb_arctic_hts nitech_us_awb_arctic_hts nitech_us_bdl_arctic_hts nitech_us_jmk_arctic_hts ked_diphone kal_diphone) festival> (set! voice_default 'nitech_us_jmk_arctic_hts) festival> (SayText "Hello, world!") festival> (quit) # text2wave test.txt -o test.aiff -otype aiff # echo "How are you?" | festival --tts
rpm srpm download : yumdownloader
yum whatprovides yumdownloader yum install dnf-utils yumdownloader httpd yumdownloader --source httpd
mac : lame Install Hint - merge audio files
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" < /dev/null 2> /dev/null brew install lame
mac bash : tts to file from .txt reading by line with gap duration Hint
#!/bin/sh #ttsTXT.sh TNM01-01 155 NAME=$1 RATE=$2 [ "$RATE" = "" ] && RATE=155 cmd="say -v Yuna -r $RATE -o $NAME.aiff -f $NAME.txt" echo $cmd #eval $cmd cmd="lame -m s $NAME.aiff $NAME.mp3" echo $cmd #eval $cmd MF=$2; N=0; FS=""; sed -e $'s/[.] */\\\n/g' $NAME.txt > ${NAME}_tts.txt while read line; […]
bash : mv filenames to serial by ctime Hint
find $P -type f -print0 | xargs -0 ls -tr | while read file; do N=$((N+1)) new=$( printf "%05d.%s" $N "${file##*.}" ) mv "$file" "$new" done
ffmpeg : merge audio files m4a Hint
#!/bin/sh #ffmpegAudioMerge.sh "*.m4a" P=$1; N=0; FS=""; for f in $P; do N=$((N+1)) FS="$FS -i \"$f\"" echo $f done cmd="ffmpeg \ $FS \ -filter_complex 'concat=n=$N:v=0:a=1[a]' -map '[a]' \ all.m4a" echo $cmd eval $cmd
KeepAlive : ssh, oracle Hint
# vi /etc/ssh/sshd_config KeepAlive yes ClientAliveInterval 60 # vi /home/oracle/app/oracle/product/11.2.0/dbhome_1/network/admin/sqlnet.ora SQLNET.EXPIRE_TIME=1