aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/regen.py
diff options
context:
space:
mode:
authorElvis Claros Castro <elvis@claros.ar>2026-09-26 20:50:41 -0300
committerElvis Claros Castro <elvis@claros.ar>2026-09-26 20:50:41 -0300
commitfafaebb051907a848a9406f9da19669c81a83a3b (patch)
treec30ea26e6b549e5523af2bae5c39569e9a946b12 /scripts/regen.py
parent59355909f2de9236af8168a26c70bcf6caa3b285 (diff)
download100cia-videos-fafaebb051907a848a9406f9da19669c81a83a3b.tar.gz
100cia-videos-fafaebb051907a848a9406f9da19669c81a83a3b.zip
Translate code, comments and logs to English; English README; configurable paths and env varsHEADmain
Identifiers, docstrings, comments and console messages are now in English. Narration, subtitles and on-screen text stay in Spanish (they are the video content). The Blender <-> Godot physics protocol uses English keys and body prefixes chosen to keep the original creation order, so cached simulations and renders stay bit-identical. The old Spanish environment variable names are still accepted.
Diffstat (limited to 'scripts/regen.py')
-rw-r--r--scripts/regen.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/regen.py b/scripts/regen.py
index 7ff69a8..4158d12 100644
--- a/scripts/regen.py
+++ b/scripts/regen.py
@@ -1,9 +1,9 @@
# -*- coding: utf-8 -*-
-"""Regenera segmentos puntuales probando varias semillas y quedandose con la mejor."""
+"""Regenerates specific segments trying several seeds and keeping the best."""
import json, os, subprocess, sys, shutil
sys.path.insert(0, os.path.dirname(os.path.abspath(__file__)))
from narration import SCRIPTS
-from gen_audio import synth_seguro, transcribe, dur, ROOT
+from gen_audio import synth_safe, transcribe, dur, ROOT
from verify import norm
from difflib import SequenceMatcher
@@ -22,7 +22,7 @@ def main(name, idxs):
cands = []
for k in range(TRIES):
c = os.path.join(work, f"{i:02d}_{k}.wav")
- synth_seguro(text, c, 4242 + 977 * k, f"[{name}] {i:02d}")
+ synth_safe(text, c, 4242 + 977 * k, f"[{name}] {i:02d}")
cands.append(c)
tr = transcribe(cands, work)
scored = sorted(((SequenceMatcher(None, norm(text, False),