File size: 477 Bytes
0478022 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | from pathlib import Path
import sys
MODEL_DIR = Path(__file__).resolve().parents[1]
sys.path.insert(0, str(MODEL_DIR))
from inference import InflectTTS
text = (
"Long input is divided at punctuation-aware boundaries. "
"Each segment is generated locally, then joined with a controlled pause; "
"this keeps memory bounded without requiring a remote service."
)
InflectTTS(MODEL_DIR, device="cpu").save(text, MODEL_DIR / "long_example.wav", seed=11)
|