aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/regen.py
diff options
context:
space:
mode:
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),