Returns the resolved executable path used to run Piper.
Absolute executable path.
Returns a copy of default inference options.
Read-only default inference options.
Returns the resolved model path used by this instance.
Absolute model path.
Synthesizes speech for the given text and returns audio as Buffer.
outputFormat: "wav" (default): WAV bytes via a temp file
(or directly to outputFile when set).outputFormat: "raw": raw PCM bytes captured from stdout.outputFormat: "mp3" | "ogg" | "opus": WAV internally, transcoded via
ffmpeg (or pure-JS fallbacks: lamejs for mp3, opusscript for opus).Input text to synthesize.
Optional inference options for this call.
Synthesis result with audio buffer and metadata.
Convenience helper that synthesizes directly to a file.
Input text to synthesize.
Destination file path.
Optional inference options for this call.
Promise resolved when the output file has been written.
StaticcreateCreates a new instance and performs a warm-up inference to validate setup.
Pass skipWarmup: true to skip the validation inference.
Instance creation options.
A fully initialized PiperTTS instance.
High-level TypeScript wrapper around the Piper CLI.