Bis 030
This commit is contained in:
21
GoetheVerlag/mp3/019/output_phrases/convert.py
Executable file
21
GoetheVerlag/mp3/019/output_phrases/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/019/output_phrases/convert.sh
Executable file
9
GoetheVerlag/mp3/019/output_phrases/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
|
||||
|
||||
Binary file not shown.
BIN
GoetheVerlag/mp3/019/output_phrases/har_du_en_flasköppnare.wav
Normal file
BIN
GoetheVerlag/mp3/019/output_phrases/har_du_en_flasköppnare.wav
Normal file
Binary file not shown.
BIN
GoetheVerlag/mp3/019/output_phrases/har_du_en_konservöppnare.wav
Normal file
BIN
GoetheVerlag/mp3/019/output_phrases/har_du_en_konservöppnare.wav
Normal file
Binary file not shown.
BIN
GoetheVerlag/mp3/019/output_phrases/har_du_en_korkskruv.wav
Normal file
BIN
GoetheVerlag/mp3/019/output_phrases/har_du_en_korkskruv.wav
Normal file
Binary file not shown.
BIN
GoetheVerlag/mp3/019/output_phrases/har_du_ett_nytt_kök.wav
Normal file
BIN
GoetheVerlag/mp3/019/output_phrases/har_du_ett_nytt_kök.wav
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
GoetheVerlag/mp3/019/output_phrases/ja_dukar_bordet.wav
Normal file
BIN
GoetheVerlag/mp3/019/output_phrases/ja_dukar_bordet.wav
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
GoetheVerlag/mp3/019/output_phrases/ska_jag_skala_potatisen.wav
Normal file
BIN
GoetheVerlag/mp3/019/output_phrases/ska_jag_skala_potatisen.wav
Normal file
Binary file not shown.
BIN
GoetheVerlag/mp3/019/output_phrases/ska_jag_skära_löken.wav
Normal file
BIN
GoetheVerlag/mp3/019/output_phrases/ska_jag_skära_löken.wav
Normal file
Binary file not shown.
BIN
GoetheVerlag/mp3/019/output_phrases/ska_jag_skölja_salladen.wav
Normal file
BIN
GoetheVerlag/mp3/019/output_phrases/ska_jag_skölja_salladen.wav
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
GoetheVerlag/mp3/019/output_phrases/var_är_besticken.wav
Normal file
BIN
GoetheVerlag/mp3/019/output_phrases/var_är_besticken.wav
Normal file
Binary file not shown.
BIN
GoetheVerlag/mp3/019/output_phrases/var_är_glasen.wav
Normal file
BIN
GoetheVerlag/mp3/019/output_phrases/var_är_glasen.wav
Normal file
Binary file not shown.
BIN
GoetheVerlag/mp3/019/output_phrases/var_är_porselinet.wav
Normal file
BIN
GoetheVerlag/mp3/019/output_phrases/var_är_porselinet.wav
Normal file
Binary file not shown.
Reference in New Issue
Block a user