Bis 030
This commit is contained in:
21
GoetheVerlag/mp3/020/output_phrases/convert.py
Executable file
21
GoetheVerlag/mp3/020/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/020/output_phrases/convert.sh
Executable file
9
GoetheVerlag/mp3/020/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
|
||||
|
||||
BIN
GoetheVerlag/mp3/020/output_phrases/har_ni_barn.wav
Normal file
BIN
GoetheVerlag/mp3/020/output_phrases/har_ni_barn.wav
Normal file
Binary file not shown.
BIN
GoetheVerlag/mp3/020/output_phrases/har_ni_en_hund.wav
Normal file
BIN
GoetheVerlag/mp3/020/output_phrases/har_ni_en_hund.wav
Normal file
Binary file not shown.
BIN
GoetheVerlag/mp3/020/output_phrases/har_ni_en_katt.wav
Normal file
BIN
GoetheVerlag/mp3/020/output_phrases/har_ni_en_katt.wav
Normal file
Binary file not shown.
BIN
GoetheVerlag/mp3/020/output_phrases/här_är_min_gitarr.wav
Normal file
BIN
GoetheVerlag/mp3/020/output_phrases/här_är_min_gitarr.wav
Normal file
Binary file not shown.
BIN
GoetheVerlag/mp3/020/output_phrases/här_är_mina_böcker.wav
Normal file
BIN
GoetheVerlag/mp3/020/output_phrases/här_är_mina_böcker.wav
Normal file
Binary file not shown.
BIN
GoetheVerlag/mp3/020/output_phrases/här_är_mina_cdskivor.wav
Normal file
BIN
GoetheVerlag/mp3/020/output_phrases/här_är_mina_cdskivor.wav
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
GoetheVerlag/mp3/020/output_phrases/känn_er_som_hemma.wav
Normal file
BIN
GoetheVerlag/mp3/020/output_phrases/känn_er_som_hemma.wav
Normal file
Binary file not shown.
BIN
GoetheVerlag/mp3/020/output_phrases/slå_er_ner.wav
Normal file
BIN
GoetheVerlag/mp3/020/output_phrases/slå_er_ner.wav
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
GoetheVerlag/mp3/020/output_phrases/tycker_ni_om_att_sjunga.wav
Normal file
BIN
GoetheVerlag/mp3/020/output_phrases/tycker_ni_om_att_sjunga.wav
Normal file
Binary file not shown.
BIN
GoetheVerlag/mp3/020/output_phrases/tycker_ni_om_musik.wav
Normal file
BIN
GoetheVerlag/mp3/020/output_phrases/tycker_ni_om_musik.wav
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user