From fafaebb051907a848a9406f9da19669c81a83a3b Mon Sep 17 00:00:00 2001 From: Elvis Claros Castro Date: Sat, 26 Sep 2026 20:50:41 -0300 Subject: Translate code, comments and logs to English; English README; configurable paths and env vars 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. --- scripts/regen.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'scripts/regen.py') 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), -- cgit v1.2.3