|
|
@ -2,9 +2,9 @@ lineno=0
|
|
|
|
while read line
|
|
|
|
while read line
|
|
|
|
do
|
|
|
|
do
|
|
|
|
lineno=$((lineno+1))
|
|
|
|
lineno=$((lineno+1))
|
|
|
|
filename=`printf "speech%04d" $lineno`
|
|
|
|
filename=`printf "speech%02d" $lineno`
|
|
|
|
espeak "$line" -w "$filename.wav"
|
|
|
|
espeak "$line" -w "$filename.wav"
|
|
|
|
ffmpeg -i "$filename.wav" -metadata title="$line" -y $filename.mp3 > /dev/null 2> /dev/null
|
|
|
|
ffmpeg -i "$filename.wav" -metadata title="$line" -y $filename.ogg > /dev/null 2> /dev/null
|
|
|
|
rm "$filename.wav"
|
|
|
|
rm "$filename.wav"
|
|
|
|
done
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
|
|