How long-form and batch inference work
mainThe Node.js implementation handles text in two distinct modes:
Long-Form Mode (Default): When processing long text without the
--batchflag, the system automatically splits text into chunks (default max 300 characters). It synthesizes each chunk and combines them into a single audio file with 0.3s silences between them to ensure natural pacing.Batch Mode (
--batch): Used for processing multiple distinct text/voice pairs at once. In this mode, automatic text chunking is disabled. You must provide a matching number of voice styles and texts (separated by commas and pipes respectively).
Choose Long-Form mode for single long passages and Batch mode for multiple short, different samples.