upper2lower
This commit is contained in:
6
GoetheVerlag/mp3/002/upper2lower.sh
Executable file
6
GoetheVerlag/mp3/002/upper2lower.sh
Executable file
@@ -0,0 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
for f in *; do
|
||||
new=$(echo "$f" | tr '[:upper:]' '[:lower:]')
|
||||
mv "$f" "$new"
|
||||
done
|
||||
6
GoetheVerlag/mp3/011/rename.sh
Executable file
6
GoetheVerlag/mp3/011/rename.sh
Executable file
@@ -0,0 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
for i in *
|
||||
do
|
||||
mv "$i" "${i// /_}"
|
||||
done
|
||||
21
GoetheVerlag/mp3/045/convert.py
Executable file
21
GoetheVerlag/mp3/045/convert.py
Executable file
@@ -0,0 +1,21 @@
|
||||
#!/usr/bin/python3
|
||||
# coding=utf-8
|
||||
from pydub import AudioSegment
|
||||
import sys,os
|
||||
|
||||
def convert(wav):
|
||||
# Lade die WAV-Datei
|
||||
audio = AudioSegment.from_wav(wav)
|
||||
|
||||
print(wav)
|
||||
|
||||
output = os.path.splitext(wav)[0]
|
||||
outputname = output+".mp3"
|
||||
# print(outputname)
|
||||
|
||||
# Speichere sie als MP3 (z.B. mit einer Bitrate von 192 kbps)
|
||||
audio.export(outputname, format="mp3", bitrate="192k")
|
||||
|
||||
print("Konvertierung abgeschlossen!")
|
||||
|
||||
convert(sys.argv[1])
|
||||
9
GoetheVerlag/mp3/045/convert.sh
Executable file
9
GoetheVerlag/mp3/045/convert.sh
Executable file
@@ -0,0 +1,9 @@
|
||||
#!/bin/bash
|
||||
|
||||
for i in $(ls *.wav)
|
||||
do
|
||||
python3 convert.py $i
|
||||
echo $i
|
||||
rm -f $i
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user