Inflect-Micro-v2 / examples /long_text.py
owensong's picture
Stage verified Inflect v2 release candidate and evaluation evidence
0478022 verified
Raw
History Blame Contribute Delete
477 Bytes
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)