diff --git a/ReleaseNotes.md b/ReleaseNotes.md index 2cb51f3..c9b25d2 100644 --- a/ReleaseNotes.md +++ b/ReleaseNotes.md @@ -1,9 +1,10 @@ # Version: 0.0.12 -Date: 2024.07.07 +Date: 2024.07.13 - Changes: - Reduce Memory usage by clearing cache in whisper - Added lyrics to midi file - Some bug fixes and improved error handling and logs + - Fix hypen language download # Version: 0.0.11 Date: 2024.07.06 diff --git a/requirements.txt b/requirements.txt index b39fb83..b9a5561 100644 --- a/requirements.txt +++ b/requirements.txt @@ -11,7 +11,8 @@ numpy~=1.26.4 Pillow~=10.3.0 pretty_midi~=0.2.10 pydub~=0.25.1 -PyHyphen~=4.0.3 +#PyHyphen~=4.0.3 +PyHyphen-Reloaded~=4.0.5 python_Levenshtein~=0.25.1 scipy~=1.13.1 tensorflow<2.11 diff --git a/src/Settings.py b/src/Settings.py index 87862c7..c8c0a34 100644 --- a/src/Settings.py +++ b/src/Settings.py @@ -6,7 +6,7 @@ from dataclasses_json import dataclass_json @dataclass_json @dataclass class Settings: - APP_VERSION = "0.0.12-dev1" + APP_VERSION = "0.0.12-dev2" create_midi = True create_plot = False diff --git a/src/modules/Speech_Recognition/hyphenation.py b/src/modules/Speech_Recognition/hyphenation.py index 4e13440..5854072 100644 --- a/src/modules/Speech_Recognition/hyphenation.py +++ b/src/modules/Speech_Recognition/hyphenation.py @@ -9,71 +9,6 @@ from modules.console_colors import ( blue_highlighted, ) -# PyHyphen tries to retrieve dictionaries for download 'https://cgit.freedesktop.org/libreoffice/dictionaries/plain/' -# Updated PyHyphen dictools Languages, so they can be installed -LANGUAGES = [ -"af_ZA", -"an_ES", -"ar", -"be_BY", -"bg_BG", -"bn_BD", -"bo", -"br_FR", -"bs_BA", -"ca", -"ckb", -"cs_CZ", -"da_DK", -"de", -"el_GR", -"en", -"eo", -"es", -"et_EE", -"fa_IR", -"fr_FR", -"gd_GB", -"gl", -"gu_IN", -"gug", -"he_IL", -"hi_IN", -"hr_HR", -"hu_HU", -"id", -"is", -"it_IT", -"kmr_Latn", -"ko_KR", -"lo_LA", -"lt_LT", -"lv_LV", -"mn_MN", -"ne_NP", -"nl_NL", -"no", -"oc_FR", -"pl_PL", -"pt_BR", -"pt_PT", -"ro", -"ru_RU", -"si_LK", -"sk_SK", -"sl_SI", -"sq_AL", -"sr", -"sv_SE", -"sw_TZ", -"te_IN", -"th_TH", -"tr_TR", -"uk_UA", -"vi", -"zu_ZA", -] - def language_check(language="en") -> str | None: """Check if language is supported""" @@ -89,7 +24,7 @@ def language_check(language="en") -> str | None: lang_region = installed_region_keys[0] else: # Take downloadable language key - downloadable_key = [i for i in LANGUAGES if i.startswith(language)] + downloadable_key = [i for i in dictools.LANGUAGES if i.startswith(language)] downloadable_folder_key = [i for i in downloadable_key if i == language] if downloadable_folder_key: lang_region = downloadable_key[0]