Download all Speech to Text Language Pack modules for AME

This commit is contained in:
ckamte
2026-01-26 14:22:58 +06:30
parent c597d921c6
commit 3549a967c7
2 changed files with 14 additions and 12 deletions

View File

@@ -52,3 +52,4 @@ python ccdl-win.py -u 6 -l en_US -p win64 -s phsp,idsn,ilst -x
``` ```
python ccdl-win.py -u 6 -l en_US,fr_FR -p win64 -s phsp,idsn,ilst -x python ccdl-win.py -u 6 -l en_US,fr_FR -p win64 -s phsp,idsn,ilst -x
``` ```
5. Working on filtering Speech to Text Language Pack modules for AME (v26x). (Current script will download all available modules!!)

View File

@@ -873,20 +873,21 @@ def condition_filter(pkgJson: dict, langs: list[str]) -> dict:
if test_and(conds, osProc, osver, langs) == True: if test_and(conds, osProc, osver, langs) == True:
newPkgs.append(pkg) newPkgs.append(pkg)
# premiere pro # premiere pro/media encoder
elif "-esl_lp_" in pkg["PackageName"]: elif "-esl_lp_" in pkg["PackageName"]:
app, pproLang = pkg["PackageName"].split("-") if "all" in langs or "mul" in langs:
pproLang = pproLang.replace("esl_lp_", "") newPkgs.append(pkg)
for l in langs: else:
if l == "all" or l == "mul": app, pproLang = pkg["PackageName"].split("-")
continue pproLang = pproLang.replace("esl_lp_", "")
main, locale = l.split("_") for l in langs:
if main == pproLang: main, locale = l.split("_")
newPkgs.append(pkg) if main == pproLang:
# for china languages
if main == "zh":
if pproLang == "cmn" or pproLang == "yue":
newPkgs.append(pkg) newPkgs.append(pkg)
# for china languages
if main == "zh":
if pproLang == "cmn" or pproLang == "yue":
newPkgs.append(pkg)
else: else:
newPkgs.append(pkg) newPkgs.append(pkg)