voice_id. Copy an ID from the Voice Library and drop it into your agent config.
Setting a voice
Setvoice_id when you create or update an agent. Everything else (provider, model, sample rate, encoding) falls back to platform defaults if omitted.
You can also change the voice directly from the Create New Agent form in the Developer Portal: no code required.
Full TTS configuration
For advanced use (custom pronunciations, sample rate, pitch, speaking rate, stability), pass a fulltts object:
Choosing a voice
Choosing a TTS provider
Full provider list in Providers.
Custom pronunciations
Product names, acronyms, and industry jargon often get mispronounced. Fix them per-voice by adding entries tocustomPronounciation:
Fallback voices
If the primary TTS provider fails or is rate-limited, TruGen falls back to a secondary voice automatically. Setfallback_voice_id to a voice from a different provider for resilience:
Voice cloning
For a fully custom voice (a spokesperson, a specific character, or your CEO), TruGen supports voice cloning through ElevenLabs Professional Voice Cloning. Contact sales@trugen.ai or provide an existing PVC voice ID directly asvoice_id.
What’s next
Voice Library
Browse every stock voice and copy the ID.
Multilingual
Configure STT + TTS for 60+ languages.