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
```
5. Working on filtering Speech to Text Language Pack modules for AME (v26x). (Current script will download all available modules!!)

View File

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