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

28 lines
671 B

#!/bin/sh
series=$1
year=$2
real=$3
check_and_exit() {
# Check the exit code
if [ $? -ne 0 ]; then
echo "Error: Command failed"
exit 1 # Terminate the script with a non-zero exit code
fi
}
python3 speak.py $series $year $real
check_and_exit()
rm -f $series/$year/3-wavs/$series-$year.wav
rm -f $series/$year/$series-$year.wav
python3 ffmpeg_inputs.py $series/$year "$series-$year"
check_and_exit()
# ffmpeg -f concat -safe 0 -i $series/$year/inputs-$series-$year.txt -c copy $series/$year/$series-$year.wav
ffmpeg -i $series/$year/$series-$year.wav $series/$year/$series-$year.mp3
check_and_exit()
rm -f $series/$year/$series-$year.wav