Usage guide
Setup, environment variables, and Python/JavaScript/Go usage examples.
PaplaTTS
Papla Media Text-to-Speech provider plugin. Wraps the Papla Media TTS API, which is powered by the P1 model, a synthesis engine designed for ultra-realistic English voices, authentic accents, and instant voice cloning from short audio samples.Constructor
Papla Media API key. Falls back to the
PAPLA_API_KEY environment variable when None.TTS model identifier, also used as the voice ID for the synthesis request. Defaults to
"papla_p1" (the P1 ultra-realistic English model). Consult the Papla Media API docs for a full list of available model IDs and cloned voices.Output audio sample rate in Hz. Defaults to
24000.aclose
emit
The event to emit.
interrupt
off
The event the handler was registered for.
The handler to remove.
on
callback is omitted.
The event to listen for.
The handler to invoke when the event is emitted. If
None, a decorator is returned that registers the decorated function.The registered callback when
callback is provided, otherwise a decorator that registers and returns the function it wraps.on_first_audio_byte
A callable, optionally async, invoked with synthesis timing information when the first audio byte is emitted.
synthesize
The text to synthesize; coerced to a string if needed.