This commit is contained in:
2026-08-12 08:50:39 -03:00
parent 8a0f66ebc6
commit da8e4ee602
+22
View File
@@ -0,0 +1,22 @@
import os
import logging
logger = logging.get_logger()
os.environ["NLTK_DATA"] = 'C:\\Users\\renat\\AppData\\Roaming\\nltk_data'
os.environ["HF_TOKEN"] = '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'
from spantrack import cli
root = 'D:\\DATA\\EBOOKS\\_SEM_DRM\\'
globs = [
"Night School*.epub",
"The Midnight*.epub",
"Past Tense*.epub",
"Blue Moon*.epub",
"The Sentinel",
"Better Off Dead",
"No Plan B",
]
for glob in globs:
f = root.glob(glob)
if len(f) > 1:
logger.error("Glob pattern found more than 1 file: %s", f)
continue
cli.main([f.resolve(), "--voice", "am_liam"])