You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

11 lines
240 B
Bash

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