Overview
This plugin allows you to use Speechify as a TTS provider for your voice agents.
Installation
Install the plugin:
uv add "livekit-agents[speechify]~=1.8"
pnpm add @livekit/agents-plugin-speechify@1.x
Authentication
The Speechify plugin requires a Speechify API key .
Set SPEECHIFY_API_KEY in your .env file.
Usage
Use Speechify TTS within an AgentSession or as a standalone speech generator. For example, you can use this TTS in the Voice AI quickstart.
from livekit.plugins import speechifysession = AgentSession(tts=speechify.TTS(model="simba-3.5",voice_id="dominic_32",)# ... llm, stt, etc.)
import { voice } from '@livekit/agents';import * as speechify from '@livekit/agents-plugin-speechify';const session = new voice.AgentSession({tts: new speechify.TTS({model: 'simba-3.5',voiceId: 'dominic_32',}),// ... llm, stt, etc.});
Parameters
This section describes some of the available parameters. See the plugin reference links in the Additional resources section for a complete list of all available parameters.
voice_idstringDefault: dominic_32ID of the voice to use for synthesizing speech. The voice must support the selected model. Voice IDs with a _32 suffix belong to the simba-3.2 voice roster. In Python, use the list_voices() method to list available voices. To learn more, see the plugin reference.
In Node.js this parameter is called voiceId.
modelstringDefault: simba-3.2ID of the model to use for generation. Use simba-3.5, the recommended model, for English and 47 other languages. Set language to match your input text. simba-3.2 (English only) and simba-3.0 remain available. The legacy Simba 1.6 models, simba-english and simba-multilingual, are retired for new Speechify integrations. To learn more, see supported models .
languageLanguageCodeLanguage code for the input text. For the full list, see supported languages .
loudness_normalizationbooleanDetermines whether to normalize the audio loudness to a standard level. When enabled, the plugin normalizes the output to an integrated loudness of -14 LUFS, a true peak of -2 dBTP, and a loudness range of 7 LU. When turned off, the output keeps the original loudness of the selected voice, which can vary significantly and be too quiet or too loud. Enabling loudness normalization can increase latency due to additional processing required for audio level adjustments.
In Node.js this parameter is called loudnessNormalization.
text_normalizationbooleanDetermines whether to normalize the text. If enabled, it transforms numbers, dates, and similar values into words. For example, "55" is normalized into "fifty five". This can increase latency due to additional processing required for text normalization.
In Node.js this parameter is called textNormalization.
Customizing pronunciation
Speechify supports custom pronunciation with Speech Synthesis Markup Language (SSML), an XML-based markup language that gives you granular control over speech output. With SSML, you can leverage XML tags to craft audio content that delivers a more natural and engaging listening experience. To learn more, see SSML .
Transcription timing
Speechify TTS supports aligned transcription forwarding, which improves transcription synchronization in your frontend. In Python, set use_tts_aligned_transcript=True in your AgentSession configuration to enable this feature. In Node.js, the useTtsAlignedTranscript option defaults to true. To learn more, see the docs.
Additional resources
The following resources provide more information about using Speechify with LiveKit Agents.