Installation
Install the Stream Pocket TTS plugin withExample
Check out our Pocket TTS example to see a working code sample using the plugin, or read on for some key details.Initialisation
The Pocket TTS plugin exists in the form of theTTS class:
Parameters
These are the parameters available in the Pocket TTS plugin for you to customise:| Name | Type | Default | Description |
|---|---|---|---|
voice | str | "alba" | Built-in voice name or path to a custom wav file for voice cloning. Built-in options: alba, marius, javert, jean, fantine, cosette, eponine, azelma. |
client | TTSModel or None | None | Optional pre-initialized TTSModel instance for advanced use cases. |
Built-in voices
Pocket TTS includes several built-in voices:alba- Default voicemariusjavertjeanfantinecosetteeponineazelma
Voice cloning
You can clone a voice by providing a path to a wav file:Features
- CPU-only - No GPU required, runs efficiently on standard hardware
- Low latency - ~200ms to first audio
- Small model size - 100M parameters
- Voice cloning - Use custom wav files for voice cloning
- Built-in voices - 8 pre-configured voices available

