018 019 020 zu mp3

This commit is contained in:
2025-05-31 19:47:07 +02:00
parent fbfc38e9e5
commit 7574870c84
119 changed files with 66 additions and 147 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -1,21 +0,0 @@
#!/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])

View File

@@ -1,9 +0,0 @@
#!/bin/bash
for i in $(ls *.wav)
do
python3 convert.py $i
echo $i
rm -f $i
done

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.