Returns the resolved Piper voice configuration.
Sample rate, phoneme type, id map, and defaults parsed from the .onnx.json file.
Returns the resolved local .onnx model path (downloaded first when the voice came from a URL or catalog reference).
Absolute model path.
Converts text to phonemes with the voice's own phonemizer (espeak, text, hebrew, lithuanian, pinyin, thai, or japanese; Arabic ar voices are diacritized first unless disabled).
Input text to phonemize.
Phoneme arrays grouped by sentence.
Synthesizes text and returns the full audio: sentence chunks concatenated with sentenceSilence gaps, then encoded to outputFormat (wav by default) and optionally written to outputFile.
Input text to synthesize.
Per-call synthesis parameters, output format, and optional output file.
Final audio with its sample rate and source text.
Synthesizes text sentence by sentence, yielding raw PCM per sentence as it is produced.
Input text to synthesize.
Per-call synthesis parameters (scales, speaker, volume).
Per-sentence { sampleRate, phonemes, phonemeIds, pcm16 } chunks.
StaticloadLoads a voice from a local file, a direct URL, or a catalog reference.
Resolution order: explicit modelPath, then modelUrl (downloaded once
into modelsDir and cached), then model (rhasspy id, hub:<slug>,
piperhub.org page URL, or bare PiperHub slug). The .onnx.json config
defaults to the model sibling (<model>.json / <modelUrl>.json).
Model source, session reuse, and phonemizer data locations.
A voice with a warm persistent ONNX session.
Native Piper TTS voice with persistent ONNX session (mirrors piper1-gpl voice.py PiperVoice).