diff --git a/Crowdanki/crowdanki.py b/Crowdanki/crowdanki.py index 66d60b0..b12cbd3 100644 --- a/Crowdanki/crowdanki.py +++ b/Crowdanki/crowdanki.py @@ -1,48 +1,87 @@ import json -import uuid +import hashlib -with open('deck.json', 'r', encoding='utf-8') as f: + +base91chars = ( + 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz' + '0123456789!#$%&()*+,-./:;<=>?@[]^_`{|}~' +) + +def anki_guid(text: str) -> str: + # SHA1-Hash des Front-Felds berechnen + h = hashlib.sha1(text.encode('utf-8')).digest() + x = int.from_bytes(h[:8], 'little') # Anki nimmt die ersten 8 Bytes, little-endian + + # Kodierung in Base91-Zeichenkette (10 Zeichen) + chars = [] + for _ in range(10): + chars.append(base91chars[x % len(base91chars)]) + x //= len(base91chars) + + return ''.join(chars) + +with open('Schwedisch_Goetheverlag/deck.json', 'r', encoding='utf-8') as f: data = json.load(f) + original_notes = data['notes'] new_notes = [] existing_signatures = set() - -def signature(front0, front1, back): - return f"{front0}||{front1}||{back}" +existing__notemodels = [] +for i in data['note_models']: + existing__notemodels.append(i['crowdanki_uuid']) for note in original_notes: fields = note['fields'] + note_model_uuid = note['note_model_uuid'] if len(fields) < 3: continue original_front = fields[0] # "ich" original_back = fields[1] # "jag" - original_audio = fields[2] # "[sound:Jag-4718d0.mp3]" + original_back_audio = fields[2] # "[sound:Jag-4718d0.mp3]" + original_front_uuid = note_model_uuid + new_uuid = None + new_note = None - sig = signature(original_front, original_audio, original_back) - reversed_sig = signature(original_back, original_audio, original_front) + if original_front_uuid == existing__notemodels[0]: + # Original: + # Deutsch (Front) + # Sverige (Back) + # Audio (Backaudio) + # Neu: + # Sverige (Front) + # Audio (Frontaudio) + # Deutsch (Back) - if note['guid'].startswith('rev-') or reversed_sig in existing_signatures: - continue + new_note = { + "__type__": "Note", + "fields": [ + original_back, + original_back_audio, + original_front + ], + "guid": f"{anki_guid(original_back)}", + "note_model_uuid": existing__notemodels[1], + "tags": [] + } + new_notes.append(new_note) - new_note = { - "__type__": "Note", - "fields": [ - original_back, # Feld 0: Frage Text (Antwort aus Original) - original_audio, # Feld 1: Frage Audio (MP3 aus Original) - original_front # Feld 2: Antwort Text (Frage aus Original) - ], - "guid": f"rev-{uuid.uuid4()}", - "note_model_uuid": note["note_model_uuid"], - "tags": note.get("tags", []) + ["reversed"] - } + # new_note = { + # "__type__": "Note", + # "fields": [ + # original_front, + # original_front_audio, + # original_back + # ], + # "guid": f"{anki_guid(original_front)}", + # "note_model_uuid": note_model_uuid[1] + # } + # new_notes.append(new_note) + # print(new_note - new_notes.append(new_note) - existing_signatures.add(sig) - existing_signatures.add(reversed_sig) data['notes'].extend(new_notes) -with open('crowdanki_export_dupliziert.json', 'w', encoding='utf-8') as f: +with open('Schwedisch_Goetheverlag/crowdanki_export_dupliziert.json', 'w', encoding='utf-8') as f: json.dump(data, f, ensure_ascii=False, indent=2) \ No newline at end of file diff --git a/Crowdanki/guid.py b/Crowdanki/guid.py index 3ef0e71..e3ce284 100644 --- a/Crowdanki/guid.py +++ b/Crowdanki/guid.py @@ -1,4 +1,4 @@ -import hashlib, uuid, random, string +import hashlib, uuid, random, string, sys def anki_guid1(text: str) -> str: #return hashlib.sha1(text.encode('utf-8')).hexdigest()[:10] @@ -35,4 +35,4 @@ def anki_guid(text: str) -> str: return ''.join(chars) -print(anki_guid("ich und du")) \ No newline at end of file +print(anki_guid(sys.argv[1])) diff --git a/GoetheVerlag/mp3/006/Jag läser ett brev.wav b/GoetheVerlag/mp3/006/Jag läser ett brev.wav deleted file mode 100644 index 630e355..0000000 Binary files a/GoetheVerlag/mp3/006/Jag läser ett brev.wav and /dev/null differ diff --git a/GoetheVerlag/mp3/018/barnen_städar_barnkammaren.mp3 b/GoetheVerlag/mp3/018/barnen_städar_barnkammaren.mp3 new file mode 100644 index 0000000..03b5615 Binary files /dev/null and b/GoetheVerlag/mp3/018/barnen_städar_barnkammaren.mp3 differ diff --git a/GoetheVerlag/mp3/018/barnen_tvättar_cyklarna.mp3 b/GoetheVerlag/mp3/018/barnen_tvättar_cyklarna.mp3 new file mode 100644 index 0000000..80d958a Binary files /dev/null and b/GoetheVerlag/mp3/018/barnen_tvättar_cyklarna.mp3 differ diff --git a/GoetheVerlag/mp3/018/convert.py b/GoetheVerlag/mp3/018/convert.py deleted file mode 100755 index 191829f..0000000 --- a/GoetheVerlag/mp3/018/convert.py +++ /dev/null @@ -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]) diff --git a/GoetheVerlag/mp3/018/convert.sh b/GoetheVerlag/mp3/018/convert.sh deleted file mode 100755 index b453ff9..0000000 --- a/GoetheVerlag/mp3/018/convert.sh +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/bash - -for i in $(ls *.wav) -do -python3 convert.py $i -echo $i -rm -f $i -done - diff --git a/GoetheVerlag/mp3/018/farmor_mormor_vattnar_blommorna.mp3 b/GoetheVerlag/mp3/018/farmor_mormor_vattnar_blommorna.mp3 new file mode 100644 index 0000000..8c0c4c7 Binary files /dev/null and b/GoetheVerlag/mp3/018/farmor_mormor_vattnar_blommorna.mp3 differ diff --git a/GoetheVerlag/mp3/018/fönstren_är_smutsiga.mp3 b/GoetheVerlag/mp3/018/fönstren_är_smutsiga.mp3 new file mode 100644 index 0000000..017ed0f Binary files /dev/null and b/GoetheVerlag/mp3/018/fönstren_är_smutsiga.mp3 differ diff --git a/GoetheVerlag/mp3/018/golvet_är_smutsigt.mp3 b/GoetheVerlag/mp3/018/golvet_är_smutsigt.mp3 new file mode 100644 index 0000000..28c6574 Binary files /dev/null and b/GoetheVerlag/mp3/018/golvet_är_smutsigt.mp3 differ diff --git a/GoetheVerlag/mp3/018/idag_har_vi_tid.mp3 b/GoetheVerlag/mp3/018/idag_har_vi_tid.mp3 new file mode 100644 index 0000000..55f5efb Binary files /dev/null and b/GoetheVerlag/mp3/018/idag_har_vi_tid.mp3 differ diff --git a/GoetheVerlag/mp3/018/idag_städar_vi_lägenheten.mp3 b/GoetheVerlag/mp3/018/idag_städar_vi_lägenheten.mp3 new file mode 100644 index 0000000..2e413ec Binary files /dev/null and b/GoetheVerlag/mp3/018/idag_städar_vi_lägenheten.mp3 differ diff --git a/GoetheVerlag/mp3/018/idag_är_det_lördag.mp3 b/GoetheVerlag/mp3/018/idag_är_det_lördag.mp3 new file mode 100644 index 0000000..49ea6e3 Binary files /dev/null and b/GoetheVerlag/mp3/018/idag_är_det_lördag.mp3 differ diff --git a/GoetheVerlag/mp3/018/jag_hänger_upp_tvätten.mp3 b/GoetheVerlag/mp3/018/jag_hänger_upp_tvätten.mp3 new file mode 100644 index 0000000..7c36ea6 Binary files /dev/null and b/GoetheVerlag/mp3/018/jag_hänger_upp_tvätten.mp3 differ diff --git a/GoetheVerlag/mp3/018/jag_lägger_tvätten_i_tvättmaskinen.mp3 b/GoetheVerlag/mp3/018/jag_lägger_tvätten_i_tvättmaskinen.mp3 new file mode 100644 index 0000000..6ecf5a0 Binary files /dev/null and b/GoetheVerlag/mp3/018/jag_lägger_tvätten_i_tvättmaskinen.mp3 differ diff --git a/GoetheVerlag/mp3/018/jag_stryker_tvätten.mp3 b/GoetheVerlag/mp3/018/jag_stryker_tvätten.mp3 new file mode 100644 index 0000000..6d41b10 Binary files /dev/null and b/GoetheVerlag/mp3/018/jag_stryker_tvätten.mp3 differ diff --git a/GoetheVerlag/mp3/018/jag_städar_badrummet.mp3 b/GoetheVerlag/mp3/018/jag_städar_badrummet.mp3 new file mode 100644 index 0000000..be8973d Binary files /dev/null and b/GoetheVerlag/mp3/018/jag_städar_badrummet.mp3 differ diff --git a/GoetheVerlag/mp3/018/min_man_städar_sitt_skrivbord.mp3 b/GoetheVerlag/mp3/018/min_man_städar_sitt_skrivbord.mp3 new file mode 100644 index 0000000..0eea49c Binary files /dev/null and b/GoetheVerlag/mp3/018/min_man_städar_sitt_skrivbord.mp3 differ diff --git a/GoetheVerlag/mp3/018/min_man_tvättar_bilen.mp3 b/GoetheVerlag/mp3/018/min_man_tvättar_bilen.mp3 new file mode 100644 index 0000000..685edfe Binary files /dev/null and b/GoetheVerlag/mp3/018/min_man_tvättar_bilen.mp3 differ diff --git a/GoetheVerlag/mp3/018/output_phrases/barnen_städar_barnkammaren.wav b/GoetheVerlag/mp3/018/output_phrases/barnen_städar_barnkammaren.wav deleted file mode 100644 index 1e75843..0000000 Binary files a/GoetheVerlag/mp3/018/output_phrases/barnen_städar_barnkammaren.wav and /dev/null differ diff --git a/GoetheVerlag/mp3/018/output_phrases/barnen_tvättar_cyklarna.wav b/GoetheVerlag/mp3/018/output_phrases/barnen_tvättar_cyklarna.wav deleted file mode 100644 index c90e4d4..0000000 Binary files a/GoetheVerlag/mp3/018/output_phrases/barnen_tvättar_cyklarna.wav and /dev/null differ diff --git a/GoetheVerlag/mp3/018/output_phrases/convert.py b/GoetheVerlag/mp3/018/output_phrases/convert.py deleted file mode 100755 index 191829f..0000000 --- a/GoetheVerlag/mp3/018/output_phrases/convert.py +++ /dev/null @@ -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]) diff --git a/GoetheVerlag/mp3/018/output_phrases/convert.sh b/GoetheVerlag/mp3/018/output_phrases/convert.sh deleted file mode 100755 index b453ff9..0000000 --- a/GoetheVerlag/mp3/018/output_phrases/convert.sh +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/bash - -for i in $(ls *.wav) -do -python3 convert.py $i -echo $i -rm -f $i -done - diff --git a/GoetheVerlag/mp3/018/output_phrases/farmor_mormor_vattnar_blommorna.wav b/GoetheVerlag/mp3/018/output_phrases/farmor_mormor_vattnar_blommorna.wav deleted file mode 100644 index 9b96448..0000000 Binary files a/GoetheVerlag/mp3/018/output_phrases/farmor_mormor_vattnar_blommorna.wav and /dev/null differ diff --git a/GoetheVerlag/mp3/018/output_phrases/fönstren_är_smutsiga.wav b/GoetheVerlag/mp3/018/output_phrases/fönstren_är_smutsiga.wav deleted file mode 100644 index 92ccde3..0000000 Binary files a/GoetheVerlag/mp3/018/output_phrases/fönstren_är_smutsiga.wav and /dev/null differ diff --git a/GoetheVerlag/mp3/018/output_phrases/golvet_är_smutsigt.wav b/GoetheVerlag/mp3/018/output_phrases/golvet_är_smutsigt.wav deleted file mode 100644 index 85b4ec2..0000000 Binary files a/GoetheVerlag/mp3/018/output_phrases/golvet_är_smutsigt.wav and /dev/null differ diff --git a/GoetheVerlag/mp3/018/output_phrases/idag_har_vi_tid.wav b/GoetheVerlag/mp3/018/output_phrases/idag_har_vi_tid.wav deleted file mode 100644 index c49381c..0000000 Binary files a/GoetheVerlag/mp3/018/output_phrases/idag_har_vi_tid.wav and /dev/null differ diff --git a/GoetheVerlag/mp3/018/output_phrases/idag_städar_vi_lägenheten.wav b/GoetheVerlag/mp3/018/output_phrases/idag_städar_vi_lägenheten.wav deleted file mode 100644 index f08301c..0000000 Binary files a/GoetheVerlag/mp3/018/output_phrases/idag_städar_vi_lägenheten.wav and /dev/null differ diff --git a/GoetheVerlag/mp3/018/output_phrases/idag_är_det_lördag.wav b/GoetheVerlag/mp3/018/output_phrases/idag_är_det_lördag.wav deleted file mode 100644 index ea882e7..0000000 Binary files a/GoetheVerlag/mp3/018/output_phrases/idag_är_det_lördag.wav and /dev/null differ diff --git a/GoetheVerlag/mp3/018/output_phrases/jag_hänger_upp_tvätten.wav b/GoetheVerlag/mp3/018/output_phrases/jag_hänger_upp_tvätten.wav deleted file mode 100644 index de5b0d7..0000000 Binary files a/GoetheVerlag/mp3/018/output_phrases/jag_hänger_upp_tvätten.wav and /dev/null differ diff --git a/GoetheVerlag/mp3/018/output_phrases/jag_lägger_tvätten_i_tvättmaskinen.wav b/GoetheVerlag/mp3/018/output_phrases/jag_lägger_tvätten_i_tvättmaskinen.wav deleted file mode 100644 index 4f84217..0000000 Binary files a/GoetheVerlag/mp3/018/output_phrases/jag_lägger_tvätten_i_tvättmaskinen.wav and /dev/null differ diff --git a/GoetheVerlag/mp3/018/output_phrases/jag_stryker_tvätten.wav b/GoetheVerlag/mp3/018/output_phrases/jag_stryker_tvätten.wav deleted file mode 100644 index 6931957..0000000 Binary files a/GoetheVerlag/mp3/018/output_phrases/jag_stryker_tvätten.wav and /dev/null differ diff --git a/GoetheVerlag/mp3/018/output_phrases/jag_städar_badrummet.wav b/GoetheVerlag/mp3/018/output_phrases/jag_städar_badrummet.wav deleted file mode 100644 index 5841f60..0000000 Binary files a/GoetheVerlag/mp3/018/output_phrases/jag_städar_badrummet.wav and /dev/null differ diff --git a/GoetheVerlag/mp3/018/output_phrases/min_man_städar_sitt_skrivbord.wav b/GoetheVerlag/mp3/018/output_phrases/min_man_städar_sitt_skrivbord.wav deleted file mode 100644 index defc631..0000000 Binary files a/GoetheVerlag/mp3/018/output_phrases/min_man_städar_sitt_skrivbord.wav and /dev/null differ diff --git a/GoetheVerlag/mp3/018/output_phrases/min_man_tvättar_bilen.wav b/GoetheVerlag/mp3/018/output_phrases/min_man_tvättar_bilen.wav deleted file mode 100644 index a9dfc22..0000000 Binary files a/GoetheVerlag/mp3/018/output_phrases/min_man_tvättar_bilen.wav and /dev/null differ diff --git a/GoetheVerlag/mp3/018/output_phrases/porslinet_är_smutsigt.wav b/GoetheVerlag/mp3/018/output_phrases/porslinet_är_smutsigt.wav deleted file mode 100644 index b32497e..0000000 Binary files a/GoetheVerlag/mp3/018/output_phrases/porslinet_är_smutsigt.wav and /dev/null differ diff --git a/GoetheVerlag/mp3/018/output_phrases/vem_dammsuger.wav b/GoetheVerlag/mp3/018/output_phrases/vem_dammsuger.wav deleted file mode 100644 index 1d05f46..0000000 Binary files a/GoetheVerlag/mp3/018/output_phrases/vem_dammsuger.wav and /dev/null differ diff --git a/GoetheVerlag/mp3/018/output_phrases/vem_diskar.wav b/GoetheVerlag/mp3/018/output_phrases/vem_diskar.wav deleted file mode 100644 index 001a767..0000000 Binary files a/GoetheVerlag/mp3/018/output_phrases/vem_diskar.wav and /dev/null differ diff --git a/GoetheVerlag/mp3/018/output_phrases/vem_putsar_fönstren_vem_dammsuger.wav b/GoetheVerlag/mp3/018/output_phrases/vem_putsar_fönstren_vem_dammsuger.wav deleted file mode 100644 index 31cf855..0000000 Binary files a/GoetheVerlag/mp3/018/output_phrases/vem_putsar_fönstren_vem_dammsuger.wav and /dev/null differ diff --git a/GoetheVerlag/mp3/018/porslinet_är_smutsigt.mp3 b/GoetheVerlag/mp3/018/porslinet_är_smutsigt.mp3 new file mode 100644 index 0000000..a8c2326 Binary files /dev/null and b/GoetheVerlag/mp3/018/porslinet_är_smutsigt.mp3 differ diff --git a/GoetheVerlag/mp3/018/vem_dammsuger.mp3 b/GoetheVerlag/mp3/018/vem_dammsuger.mp3 new file mode 100644 index 0000000..c1cd9d5 Binary files /dev/null and b/GoetheVerlag/mp3/018/vem_dammsuger.mp3 differ diff --git a/GoetheVerlag/mp3/018/vem_diskar.mp3 b/GoetheVerlag/mp3/018/vem_diskar.mp3 new file mode 100644 index 0000000..a9234b7 Binary files /dev/null and b/GoetheVerlag/mp3/018/vem_diskar.mp3 differ diff --git a/GoetheVerlag/mp3/018/vem_putsar_fönstren_vem_dammsuger.mp3 b/GoetheVerlag/mp3/018/vem_putsar_fönstren_vem_dammsuger.mp3 new file mode 100644 index 0000000..77e572a Binary files /dev/null and b/GoetheVerlag/mp3/018/vem_putsar_fönstren_vem_dammsuger.mp3 differ diff --git a/GoetheVerlag/mp3/019/grillar_du_grönsakerna_på_den_här_grillen.mp3 b/GoetheVerlag/mp3/019/grillar_du_grönsakerna_på_den_här_grillen.mp3 new file mode 100644 index 0000000..ea4c32e Binary files /dev/null and b/GoetheVerlag/mp3/019/grillar_du_grönsakerna_på_den_här_grillen.mp3 differ diff --git a/GoetheVerlag/mp3/019/har_du_en_flasköppnare.mp3 b/GoetheVerlag/mp3/019/har_du_en_flasköppnare.mp3 new file mode 100644 index 0000000..b9f66ab Binary files /dev/null and b/GoetheVerlag/mp3/019/har_du_en_flasköppnare.mp3 differ diff --git a/GoetheVerlag/mp3/019/har_du_en_konservöppnare.mp3 b/GoetheVerlag/mp3/019/har_du_en_konservöppnare.mp3 new file mode 100644 index 0000000..5040730 Binary files /dev/null and b/GoetheVerlag/mp3/019/har_du_en_konservöppnare.mp3 differ diff --git a/GoetheVerlag/mp3/019/har_du_en_korkskruv.mp3 b/GoetheVerlag/mp3/019/har_du_en_korkskruv.mp3 new file mode 100644 index 0000000..caa1cd4 Binary files /dev/null and b/GoetheVerlag/mp3/019/har_du_en_korkskruv.mp3 differ diff --git a/GoetheVerlag/mp3/019/har_du_ett_nytt_kök.mp3 b/GoetheVerlag/mp3/019/har_du_ett_nytt_kök.mp3 new file mode 100644 index 0000000..8619649 Binary files /dev/null and b/GoetheVerlag/mp3/019/har_du_ett_nytt_kök.mp3 differ diff --git a/GoetheVerlag/mp3/019/här_är_glasen_tallrikarna_och_servetterna.mp3 b/GoetheVerlag/mp3/019/här_är_glasen_tallrikarna_och_servetterna.mp3 new file mode 100644 index 0000000..2653fa5 Binary files /dev/null and b/GoetheVerlag/mp3/019/här_är_glasen_tallrikarna_och_servetterna.mp3 differ diff --git a/GoetheVerlag/mp3/019/här_är_knivarna_gafflarna_och_skedarna_här_är_glasen_tallrik.mp3 b/GoetheVerlag/mp3/019/här_är_knivarna_gafflarna_och_skedarna_här_är_glasen_tallrik.mp3 new file mode 100644 index 0000000..ab5dbee Binary files /dev/null and b/GoetheVerlag/mp3/019/här_är_knivarna_gafflarna_och_skedarna_här_är_glasen_tallrik.mp3 differ diff --git a/GoetheVerlag/mp3/019/ja_dukar_bordet.mp3 b/GoetheVerlag/mp3/019/ja_dukar_bordet.mp3 new file mode 100644 index 0000000..4b62173 Binary files /dev/null and b/GoetheVerlag/mp3/019/ja_dukar_bordet.mp3 differ diff --git a/GoetheVerlag/mp3/019/kokar_du_soppan_i_den_här_kastrullen.mp3 b/GoetheVerlag/mp3/019/kokar_du_soppan_i_den_här_kastrullen.mp3 new file mode 100644 index 0000000..e0330e6 Binary files /dev/null and b/GoetheVerlag/mp3/019/kokar_du_soppan_i_den_här_kastrullen.mp3 differ diff --git a/GoetheVerlag/mp3/019/lagar_du_mat_på_elektrisk_spis_eller_på_gasspis.mp3 b/GoetheVerlag/mp3/019/lagar_du_mat_på_elektrisk_spis_eller_på_gasspis.mp3 new file mode 100644 index 0000000..c2c5d8c Binary files /dev/null and b/GoetheVerlag/mp3/019/lagar_du_mat_på_elektrisk_spis_eller_på_gasspis.mp3 differ diff --git a/GoetheVerlag/mp3/019/output_phrases/convert.py b/GoetheVerlag/mp3/019/output_phrases/convert.py deleted file mode 100755 index 191829f..0000000 --- a/GoetheVerlag/mp3/019/output_phrases/convert.py +++ /dev/null @@ -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]) diff --git a/GoetheVerlag/mp3/019/output_phrases/convert.sh b/GoetheVerlag/mp3/019/output_phrases/convert.sh deleted file mode 100755 index b453ff9..0000000 --- a/GoetheVerlag/mp3/019/output_phrases/convert.sh +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/bash - -for i in $(ls *.wav) -do -python3 convert.py $i -echo $i -rm -f $i -done - diff --git a/GoetheVerlag/mp3/019/output_phrases/grillar_du_grönsakerna_på_den_här_grillen.wav b/GoetheVerlag/mp3/019/output_phrases/grillar_du_grönsakerna_på_den_här_grillen.wav deleted file mode 100644 index bf11543..0000000 Binary files a/GoetheVerlag/mp3/019/output_phrases/grillar_du_grönsakerna_på_den_här_grillen.wav and /dev/null differ diff --git a/GoetheVerlag/mp3/019/output_phrases/har_du_en_flasköppnare.wav b/GoetheVerlag/mp3/019/output_phrases/har_du_en_flasköppnare.wav deleted file mode 100644 index 315aef0..0000000 Binary files a/GoetheVerlag/mp3/019/output_phrases/har_du_en_flasköppnare.wav and /dev/null differ diff --git a/GoetheVerlag/mp3/019/output_phrases/har_du_en_konservöppnare.wav b/GoetheVerlag/mp3/019/output_phrases/har_du_en_konservöppnare.wav deleted file mode 100644 index f15ae23..0000000 Binary files a/GoetheVerlag/mp3/019/output_phrases/har_du_en_konservöppnare.wav and /dev/null differ diff --git a/GoetheVerlag/mp3/019/output_phrases/har_du_en_korkskruv.wav b/GoetheVerlag/mp3/019/output_phrases/har_du_en_korkskruv.wav deleted file mode 100644 index 0459d56..0000000 Binary files a/GoetheVerlag/mp3/019/output_phrases/har_du_en_korkskruv.wav and /dev/null differ diff --git a/GoetheVerlag/mp3/019/output_phrases/har_du_ett_nytt_kök.wav b/GoetheVerlag/mp3/019/output_phrases/har_du_ett_nytt_kök.wav deleted file mode 100644 index d1ddb35..0000000 Binary files a/GoetheVerlag/mp3/019/output_phrases/har_du_ett_nytt_kök.wav and /dev/null differ diff --git a/GoetheVerlag/mp3/019/output_phrases/här_är_glasen_tallrikarna_och_servetterna.wav b/GoetheVerlag/mp3/019/output_phrases/här_är_glasen_tallrikarna_och_servetterna.wav deleted file mode 100644 index 7da25c7..0000000 Binary files a/GoetheVerlag/mp3/019/output_phrases/här_är_glasen_tallrikarna_och_servetterna.wav and /dev/null differ diff --git a/GoetheVerlag/mp3/019/output_phrases/här_är_knivarna_gafflarna_och_skedarna_här_är_glasen_tallrik.wav b/GoetheVerlag/mp3/019/output_phrases/här_är_knivarna_gafflarna_och_skedarna_här_är_glasen_tallrik.wav deleted file mode 100644 index 2f0abea..0000000 Binary files a/GoetheVerlag/mp3/019/output_phrases/här_är_knivarna_gafflarna_och_skedarna_här_är_glasen_tallrik.wav and /dev/null differ diff --git a/GoetheVerlag/mp3/019/output_phrases/ja_dukar_bordet.wav b/GoetheVerlag/mp3/019/output_phrases/ja_dukar_bordet.wav deleted file mode 100644 index a153c1c..0000000 Binary files a/GoetheVerlag/mp3/019/output_phrases/ja_dukar_bordet.wav and /dev/null differ diff --git a/GoetheVerlag/mp3/019/output_phrases/kokar_du_soppan_i_den_här_kastrullen.wav b/GoetheVerlag/mp3/019/output_phrases/kokar_du_soppan_i_den_här_kastrullen.wav deleted file mode 100644 index f81352e..0000000 Binary files a/GoetheVerlag/mp3/019/output_phrases/kokar_du_soppan_i_den_här_kastrullen.wav and /dev/null differ diff --git a/GoetheVerlag/mp3/019/output_phrases/lagar_du_mat_på_elektrisk_spis_eller_på_gasspis.wav b/GoetheVerlag/mp3/019/output_phrases/lagar_du_mat_på_elektrisk_spis_eller_på_gasspis.wav deleted file mode 100644 index fbc42b2..0000000 Binary files a/GoetheVerlag/mp3/019/output_phrases/lagar_du_mat_på_elektrisk_spis_eller_på_gasspis.wav and /dev/null differ diff --git a/GoetheVerlag/mp3/019/output_phrases/ska_jag_skala_potatisen.wav b/GoetheVerlag/mp3/019/output_phrases/ska_jag_skala_potatisen.wav deleted file mode 100644 index d0a6810..0000000 Binary files a/GoetheVerlag/mp3/019/output_phrases/ska_jag_skala_potatisen.wav and /dev/null differ diff --git a/GoetheVerlag/mp3/019/output_phrases/ska_jag_skära_löken.wav b/GoetheVerlag/mp3/019/output_phrases/ska_jag_skära_löken.wav deleted file mode 100644 index e7f7e1f..0000000 Binary files a/GoetheVerlag/mp3/019/output_phrases/ska_jag_skära_löken.wav and /dev/null differ diff --git a/GoetheVerlag/mp3/019/output_phrases/ska_jag_skölja_salladen.wav b/GoetheVerlag/mp3/019/output_phrases/ska_jag_skölja_salladen.wav deleted file mode 100644 index 0086daf..0000000 Binary files a/GoetheVerlag/mp3/019/output_phrases/ska_jag_skölja_salladen.wav and /dev/null differ diff --git a/GoetheVerlag/mp3/019/output_phrases/steker_du_fisken_i_den_här_stekpannan.wav b/GoetheVerlag/mp3/019/output_phrases/steker_du_fisken_i_den_här_stekpannan.wav deleted file mode 100644 index f9a4265..0000000 Binary files a/GoetheVerlag/mp3/019/output_phrases/steker_du_fisken_i_den_här_stekpannan.wav and /dev/null differ diff --git a/GoetheVerlag/mp3/019/output_phrases/vad_vill_du_laga_för_mat_idag.wav b/GoetheVerlag/mp3/019/output_phrases/vad_vill_du_laga_för_mat_idag.wav deleted file mode 100644 index fdffeaf..0000000 Binary files a/GoetheVerlag/mp3/019/output_phrases/vad_vill_du_laga_för_mat_idag.wav and /dev/null differ diff --git a/GoetheVerlag/mp3/019/output_phrases/var_är_besticken.wav b/GoetheVerlag/mp3/019/output_phrases/var_är_besticken.wav deleted file mode 100644 index c25eb2b..0000000 Binary files a/GoetheVerlag/mp3/019/output_phrases/var_är_besticken.wav and /dev/null differ diff --git a/GoetheVerlag/mp3/019/output_phrases/var_är_glasen.wav b/GoetheVerlag/mp3/019/output_phrases/var_är_glasen.wav deleted file mode 100644 index f8ef29e..0000000 Binary files a/GoetheVerlag/mp3/019/output_phrases/var_är_glasen.wav and /dev/null differ diff --git a/GoetheVerlag/mp3/019/output_phrases/var_är_porselinet.wav b/GoetheVerlag/mp3/019/output_phrases/var_är_porselinet.wav deleted file mode 100644 index e9ef074..0000000 Binary files a/GoetheVerlag/mp3/019/output_phrases/var_är_porselinet.wav and /dev/null differ diff --git a/GoetheVerlag/mp3/019/ska_jag_skala_potatisen.mp3 b/GoetheVerlag/mp3/019/ska_jag_skala_potatisen.mp3 new file mode 100644 index 0000000..0567e08 Binary files /dev/null and b/GoetheVerlag/mp3/019/ska_jag_skala_potatisen.mp3 differ diff --git a/GoetheVerlag/mp3/019/ska_jag_skära_löken.mp3 b/GoetheVerlag/mp3/019/ska_jag_skära_löken.mp3 new file mode 100644 index 0000000..0a88249 Binary files /dev/null and b/GoetheVerlag/mp3/019/ska_jag_skära_löken.mp3 differ diff --git a/GoetheVerlag/mp3/019/ska_jag_skölja_salladen.mp3 b/GoetheVerlag/mp3/019/ska_jag_skölja_salladen.mp3 new file mode 100644 index 0000000..a8042fd Binary files /dev/null and b/GoetheVerlag/mp3/019/ska_jag_skölja_salladen.mp3 differ diff --git a/GoetheVerlag/mp3/019/steker_du_fisken_i_den_här_stekpannan.mp3 b/GoetheVerlag/mp3/019/steker_du_fisken_i_den_här_stekpannan.mp3 new file mode 100644 index 0000000..a792ccf Binary files /dev/null and b/GoetheVerlag/mp3/019/steker_du_fisken_i_den_här_stekpannan.mp3 differ diff --git a/GoetheVerlag/mp3/019/vad_vill_du_laga_för_mat_idag.mp3 b/GoetheVerlag/mp3/019/vad_vill_du_laga_för_mat_idag.mp3 new file mode 100644 index 0000000..62005d0 Binary files /dev/null and b/GoetheVerlag/mp3/019/vad_vill_du_laga_för_mat_idag.mp3 differ diff --git a/GoetheVerlag/mp3/019/var_är_besticken.mp3 b/GoetheVerlag/mp3/019/var_är_besticken.mp3 new file mode 100644 index 0000000..f3af66f Binary files /dev/null and b/GoetheVerlag/mp3/019/var_är_besticken.mp3 differ diff --git a/GoetheVerlag/mp3/019/var_är_glasen.mp3 b/GoetheVerlag/mp3/019/var_är_glasen.mp3 new file mode 100644 index 0000000..65931b1 Binary files /dev/null and b/GoetheVerlag/mp3/019/var_är_glasen.mp3 differ diff --git a/GoetheVerlag/mp3/019/var_är_porselinet.mp3 b/GoetheVerlag/mp3/019/var_är_porselinet.mp3 new file mode 100644 index 0000000..f1d985f Binary files /dev/null and b/GoetheVerlag/mp3/019/var_är_porselinet.mp3 differ diff --git a/GoetheVerlag/mp3/020/har_ni_barn.mp3 b/GoetheVerlag/mp3/020/har_ni_barn.mp3 new file mode 100644 index 0000000..f5cecb3 Binary files /dev/null and b/GoetheVerlag/mp3/020/har_ni_barn.mp3 differ diff --git a/GoetheVerlag/mp3/020/har_ni_en_hund.mp3 b/GoetheVerlag/mp3/020/har_ni_en_hund.mp3 new file mode 100644 index 0000000..dc56f11 Binary files /dev/null and b/GoetheVerlag/mp3/020/har_ni_en_hund.mp3 differ diff --git a/GoetheVerlag/mp3/020/har_ni_en_katt.mp3 b/GoetheVerlag/mp3/020/har_ni_en_katt.mp3 new file mode 100644 index 0000000..eea40fc Binary files /dev/null and b/GoetheVerlag/mp3/020/har_ni_en_katt.mp3 differ diff --git a/GoetheVerlag/mp3/020/här_är_min_gitarr.mp3 b/GoetheVerlag/mp3/020/här_är_min_gitarr.mp3 new file mode 100644 index 0000000..b257683 Binary files /dev/null and b/GoetheVerlag/mp3/020/här_är_min_gitarr.mp3 differ diff --git a/GoetheVerlag/mp3/020/här_är_mina_böcker.mp3 b/GoetheVerlag/mp3/020/här_är_mina_böcker.mp3 new file mode 100644 index 0000000..4265785 Binary files /dev/null and b/GoetheVerlag/mp3/020/här_är_mina_böcker.mp3 differ diff --git a/GoetheVerlag/mp3/020/här_är_mina_cdskivor.mp3 b/GoetheVerlag/mp3/020/här_är_mina_cdskivor.mp3 new file mode 100644 index 0000000..e73be8a Binary files /dev/null and b/GoetheVerlag/mp3/020/här_är_mina_cdskivor.mp3 differ diff --git a/GoetheVerlag/mp3/020/jag_läser_just_nu_den_här_boken.mp3 b/GoetheVerlag/mp3/020/jag_läser_just_nu_den_här_boken.mp3 new file mode 100644 index 0000000..a523099 Binary files /dev/null and b/GoetheVerlag/mp3/020/jag_läser_just_nu_den_här_boken.mp3 differ diff --git a/GoetheVerlag/mp3/020/jag_tycker_om_klassisk_musik.mp3 b/GoetheVerlag/mp3/020/jag_tycker_om_klassisk_musik.mp3 new file mode 100644 index 0000000..a5d3075 Binary files /dev/null and b/GoetheVerlag/mp3/020/jag_tycker_om_klassisk_musik.mp3 differ diff --git a/GoetheVerlag/mp3/020/känn_er_som_hemma.mp3 b/GoetheVerlag/mp3/020/känn_er_som_hemma.mp3 new file mode 100644 index 0000000..b6dabb0 Binary files /dev/null and b/GoetheVerlag/mp3/020/känn_er_som_hemma.mp3 differ diff --git a/GoetheVerlag/mp3/020/output_phrases/convert.py b/GoetheVerlag/mp3/020/output_phrases/convert.py deleted file mode 100755 index 191829f..0000000 --- a/GoetheVerlag/mp3/020/output_phrases/convert.py +++ /dev/null @@ -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]) diff --git a/GoetheVerlag/mp3/020/output_phrases/convert.sh b/GoetheVerlag/mp3/020/output_phrases/convert.sh deleted file mode 100755 index b453ff9..0000000 --- a/GoetheVerlag/mp3/020/output_phrases/convert.sh +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/bash - -for i in $(ls *.wav) -do -python3 convert.py $i -echo $i -rm -f $i -done - diff --git a/GoetheVerlag/mp3/020/output_phrases/har_ni_barn.wav b/GoetheVerlag/mp3/020/output_phrases/har_ni_barn.wav deleted file mode 100644 index 4a78a3e..0000000 Binary files a/GoetheVerlag/mp3/020/output_phrases/har_ni_barn.wav and /dev/null differ diff --git a/GoetheVerlag/mp3/020/output_phrases/har_ni_en_hund.wav b/GoetheVerlag/mp3/020/output_phrases/har_ni_en_hund.wav deleted file mode 100644 index cd34732..0000000 Binary files a/GoetheVerlag/mp3/020/output_phrases/har_ni_en_hund.wav and /dev/null differ diff --git a/GoetheVerlag/mp3/020/output_phrases/har_ni_en_katt.wav b/GoetheVerlag/mp3/020/output_phrases/har_ni_en_katt.wav deleted file mode 100644 index d674151..0000000 Binary files a/GoetheVerlag/mp3/020/output_phrases/har_ni_en_katt.wav and /dev/null differ diff --git a/GoetheVerlag/mp3/020/output_phrases/här_är_min_gitarr.wav b/GoetheVerlag/mp3/020/output_phrases/här_är_min_gitarr.wav deleted file mode 100644 index fe60c2d..0000000 Binary files a/GoetheVerlag/mp3/020/output_phrases/här_är_min_gitarr.wav and /dev/null differ diff --git a/GoetheVerlag/mp3/020/output_phrases/här_är_mina_böcker.wav b/GoetheVerlag/mp3/020/output_phrases/här_är_mina_böcker.wav deleted file mode 100644 index dac822a..0000000 Binary files a/GoetheVerlag/mp3/020/output_phrases/här_är_mina_böcker.wav and /dev/null differ diff --git a/GoetheVerlag/mp3/020/output_phrases/här_är_mina_cdskivor.wav b/GoetheVerlag/mp3/020/output_phrases/här_är_mina_cdskivor.wav deleted file mode 100644 index 2b4ce4f..0000000 Binary files a/GoetheVerlag/mp3/020/output_phrases/här_är_mina_cdskivor.wav and /dev/null differ diff --git a/GoetheVerlag/mp3/020/output_phrases/jag_läser_just_nu_den_här_boken.wav b/GoetheVerlag/mp3/020/output_phrases/jag_läser_just_nu_den_här_boken.wav deleted file mode 100644 index d9b2d24..0000000 Binary files a/GoetheVerlag/mp3/020/output_phrases/jag_läser_just_nu_den_här_boken.wav and /dev/null differ diff --git a/GoetheVerlag/mp3/020/output_phrases/jag_tycker_om_klassisk_musik.wav b/GoetheVerlag/mp3/020/output_phrases/jag_tycker_om_klassisk_musik.wav deleted file mode 100644 index 1c0b065..0000000 Binary files a/GoetheVerlag/mp3/020/output_phrases/jag_tycker_om_klassisk_musik.wav and /dev/null differ diff --git a/GoetheVerlag/mp3/020/output_phrases/känn_er_som_hemma.wav b/GoetheVerlag/mp3/020/output_phrases/känn_er_som_hemma.wav deleted file mode 100644 index a8172c7..0000000 Binary files a/GoetheVerlag/mp3/020/output_phrases/känn_er_som_hemma.wav and /dev/null differ diff --git a/GoetheVerlag/mp3/020/output_phrases/slå_er_ner.wav b/GoetheVerlag/mp3/020/output_phrases/slå_er_ner.wav deleted file mode 100644 index daa51b9..0000000 Binary files a/GoetheVerlag/mp3/020/output_phrases/slå_er_ner.wav and /dev/null differ diff --git a/GoetheVerlag/mp3/020/output_phrases/spelar_ni_något_instrument.wav b/GoetheVerlag/mp3/020/output_phrases/spelar_ni_något_instrument.wav deleted file mode 100644 index b3eed21..0000000 Binary files a/GoetheVerlag/mp3/020/output_phrases/spelar_ni_något_instrument.wav and /dev/null differ diff --git a/GoetheVerlag/mp3/020/output_phrases/tycker_ni_om_att_gå_på_konsert.wav b/GoetheVerlag/mp3/020/output_phrases/tycker_ni_om_att_gå_på_konsert.wav deleted file mode 100644 index 4979e29..0000000 Binary files a/GoetheVerlag/mp3/020/output_phrases/tycker_ni_om_att_gå_på_konsert.wav and /dev/null differ diff --git a/GoetheVerlag/mp3/020/output_phrases/tycker_ni_om_att_gå_på_operan.wav b/GoetheVerlag/mp3/020/output_phrases/tycker_ni_om_att_gå_på_operan.wav deleted file mode 100644 index 8933d32..0000000 Binary files a/GoetheVerlag/mp3/020/output_phrases/tycker_ni_om_att_gå_på_operan.wav and /dev/null differ diff --git a/GoetheVerlag/mp3/020/output_phrases/tycker_ni_om_att_gå_på_teater.wav b/GoetheVerlag/mp3/020/output_phrases/tycker_ni_om_att_gå_på_teater.wav deleted file mode 100644 index 8b01550..0000000 Binary files a/GoetheVerlag/mp3/020/output_phrases/tycker_ni_om_att_gå_på_teater.wav and /dev/null differ diff --git a/GoetheVerlag/mp3/020/output_phrases/tycker_ni_om_att_sjunga.wav b/GoetheVerlag/mp3/020/output_phrases/tycker_ni_om_att_sjunga.wav deleted file mode 100644 index 5c1f41b..0000000 Binary files a/GoetheVerlag/mp3/020/output_phrases/tycker_ni_om_att_sjunga.wav and /dev/null differ diff --git a/GoetheVerlag/mp3/020/output_phrases/tycker_ni_om_musik.wav b/GoetheVerlag/mp3/020/output_phrases/tycker_ni_om_musik.wav deleted file mode 100644 index c5f95f4..0000000 Binary files a/GoetheVerlag/mp3/020/output_phrases/tycker_ni_om_musik.wav and /dev/null differ diff --git a/GoetheVerlag/mp3/020/output_phrases/vad_tycker_ni_om_att_läsa.wav b/GoetheVerlag/mp3/020/output_phrases/vad_tycker_ni_om_att_läsa.wav deleted file mode 100644 index 780ddd8..0000000 Binary files a/GoetheVerlag/mp3/020/output_phrases/vad_tycker_ni_om_att_läsa.wav and /dev/null differ diff --git a/GoetheVerlag/mp3/020/output_phrases/vad_vill_ni_ha_att_dricka.wav b/GoetheVerlag/mp3/020/output_phrases/vad_vill_ni_ha_att_dricka.wav deleted file mode 100644 index c3d9526..0000000 Binary files a/GoetheVerlag/mp3/020/output_phrases/vad_vill_ni_ha_att_dricka.wav and /dev/null differ diff --git a/GoetheVerlag/mp3/020/slå_er_ner.mp3 b/GoetheVerlag/mp3/020/slå_er_ner.mp3 new file mode 100644 index 0000000..c1566bd Binary files /dev/null and b/GoetheVerlag/mp3/020/slå_er_ner.mp3 differ diff --git a/GoetheVerlag/mp3/020/spelar_ni_något_instrument.mp3 b/GoetheVerlag/mp3/020/spelar_ni_något_instrument.mp3 new file mode 100644 index 0000000..1924d5f Binary files /dev/null and b/GoetheVerlag/mp3/020/spelar_ni_något_instrument.mp3 differ diff --git a/GoetheVerlag/mp3/020/tycker_ni_om_att_gå_på_konsert.mp3 b/GoetheVerlag/mp3/020/tycker_ni_om_att_gå_på_konsert.mp3 new file mode 100644 index 0000000..0e86470 Binary files /dev/null and b/GoetheVerlag/mp3/020/tycker_ni_om_att_gå_på_konsert.mp3 differ diff --git a/GoetheVerlag/mp3/020/tycker_ni_om_att_gå_på_operan.mp3 b/GoetheVerlag/mp3/020/tycker_ni_om_att_gå_på_operan.mp3 new file mode 100644 index 0000000..b1f0ac3 Binary files /dev/null and b/GoetheVerlag/mp3/020/tycker_ni_om_att_gå_på_operan.mp3 differ diff --git a/GoetheVerlag/mp3/020/tycker_ni_om_att_gå_på_teater.mp3 b/GoetheVerlag/mp3/020/tycker_ni_om_att_gå_på_teater.mp3 new file mode 100644 index 0000000..313fb13 Binary files /dev/null and b/GoetheVerlag/mp3/020/tycker_ni_om_att_gå_på_teater.mp3 differ diff --git a/GoetheVerlag/mp3/020/tycker_ni_om_att_sjunga.mp3 b/GoetheVerlag/mp3/020/tycker_ni_om_att_sjunga.mp3 new file mode 100644 index 0000000..d936431 Binary files /dev/null and b/GoetheVerlag/mp3/020/tycker_ni_om_att_sjunga.mp3 differ diff --git a/GoetheVerlag/mp3/020/tycker_ni_om_musik.mp3 b/GoetheVerlag/mp3/020/tycker_ni_om_musik.mp3 new file mode 100644 index 0000000..4524164 Binary files /dev/null and b/GoetheVerlag/mp3/020/tycker_ni_om_musik.mp3 differ diff --git a/GoetheVerlag/mp3/020/vad_tycker_ni_om_att_läsa.mp3 b/GoetheVerlag/mp3/020/vad_tycker_ni_om_att_läsa.mp3 new file mode 100644 index 0000000..e4f3768 Binary files /dev/null and b/GoetheVerlag/mp3/020/vad_tycker_ni_om_att_läsa.mp3 differ diff --git a/GoetheVerlag/mp3/020/vad_vill_ni_ha_att_dricka.mp3 b/GoetheVerlag/mp3/020/vad_vill_ni_ha_att_dricka.mp3 new file mode 100644 index 0000000..d26ae98 Binary files /dev/null and b/GoetheVerlag/mp3/020/vad_vill_ni_ha_att_dricka.mp3 differ