Merge branch 'refs/heads/main' into refactor/class-refactorings

# Conflicts:
#	ReleaseNotes.md
This commit is contained in:
Vadim committed 2024-07-14 08:24:27 +02:00
commit 5b5e644fe0
4 files changed
+6 -69

No files matched your search

+2 -1
View File
@@ -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
+2 -1
View File
@@ -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
+1 -1
View File
@@ -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
+1 -66
View File
@@ -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]