.afplay

#!/bin/bash
if [ -z $1 ]; then
echo cannot read file
exit -1
fi

IFS_BACKUP=$IFS
IFS=$'¥n'

echo volume:
read volume

echo how¥ many¥ times?:
read loop

echo rate:
read rate

idx=1

until [ $idx -gt $loop ]
do
idx=$(($idx + 1))
afplay -q 1 -v $volume -r $rate $1
done

: << '#_SANAE_'
while true
do
idx=$(($var + 1))
afplay -q 1 -r $rate -v $volume $1
if [ $idx -eq $loop ]; then
break
fi
done
#_SANAE_
IFS=$IFS_BACKUP
Remove all ads