Created
September 6, 2018 14:21
-
-
Save IT-Berater/48d5250ff34dddc9dfe798183b890a94 to your computer and use it in GitHub Desktop.
Lokale wav und mp3 Dateien erzeugung im Verzeichnis
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# Thomas Wenzlaff | |
# | |
# Das Script create-tag-mp3-files.sh erzeugt wav und mp3 Dateien im Verzeichnis. | |
# | |
# | |
VERZEICHNIS="./pico2wave" | |
cd $VERZEICHNIS || exit | |
echo "Starte erzeugen ..." | |
counter=0 | |
while [ $counter -le 10 ] | |
do | |
echo "Erzeuge: $counter.wav" | |
pico2wave --lang=de-DE --wave="$counter.wav" "$counter" | |
echo "Erzeuge: $counter.mp3" | |
lame -b 320 "$counter.wav" | |
((counter++)) | |
done | |
echo "Tagge alle $VERZEICHNIS *.mp3 Dateien" | |
for i in *.mp3 ; do | |
dateiname=$(echo "${i}" | sed 's/.mp3$//') | |
echo "${i}" | |
id3v2 -t "Ansage der Zahl $dateiname" -T "1" -A "wenzlaff.de" -a "Thomas Wenzlaff" -y "2018" -c "$dateiname" -g 39 "${i}" | |
done | |
echo "Erzeuge eine Zip Datei ..." | |
cd .. | |
zip -r mp3-0-10.zip $VERZEICHNIS |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment