SILMA AI plugin for LiveKit Agents
Support for Arabic and English speech synthesis with SILMA AI TTS v2 — Modern Standard Arabic, the Saudi (Najdi) dialect, and English.
More information is available in the docs for the TTS integration.
Installation
pip install livekit-plugins-silma
Or with the LiveKit Agents extra:
uv add "livekit-agents[silma]"
Pre-requisites
You'll need an API key from SILMA. Set it as an environment variable:
export SILMA_API_KEY="..."
Usage
from livekit.agents import AgentSession
from livekit.plugins import silma
session = AgentSession(
tts=silma.TTS(
model="silma-tts-v2-msa",
voice="maryam",
),
# ... stt, llm, vad
)
Options
| Option | Default | What it does |
|---|---|---|
speech_rate |
server default (1.0) |
Speaking pace as a multiplier, from 0.7 (slower) to 1.4 (faster). |
creativity |
server default | Variance in speech prosody. |
enable_cache |
False |
Lets SILMA answer from its audio cache when your account has synthesized the identical request before. Useful for greetings and other fixed phrases. |
silma.TTS(
model="silma-tts-v2-msa",
voice="maryam",
speech_rate=1.0,
enable_cache=False,
)
All of them can be changed later with tts.update_options(...).
Models and voices
| Model | Language | Voices |
|---|---|---|
silma-tts-v2-english |
English | james, emma, isabella, oliver |
silma-tts-v2-msa |
Modern Standard Arabic | abdulaziz, fahd, layla, maryam, nouf, noura, omar, reema, yusuf, khalid, sarah, salma, salwa, saja, sultan, salman, sulaiman, salim |
silma-tts-v2-ksa |
Arabic, Saudi (Najdi) dialect | same as MSA |
Cloned voices
Upload a voice under Custom Voices at https://app.silma.ai/voices and pass its id along with your user id:
silma.TTS(
model="silma-tts-v2-ksa",
voice="maryam",
user_id="...",
custom_audio_id="voice_1769817467123",
)
Pronunciation hints
SILMA reads phone numbers, emails and links correctly when they are tagged in the text:
await session.say(
"You can reach us on <STAG_PN>92005455</STAG_PN> or at <STAG_EMAIL>hi@silma.ai</STAG_EMAIL>."
)
The plugin keeps these tags intact when it splits text, so a tag is never cut in half across two requests.
Account-level pronunciation overrides configured at https://app.silma.ai/control
are applied when you pass user_id and
enable_server_pronunciation_overrides=True.
How it works
stream() uses the realtime WebSocket API (wss://api.silma.ai/tts/v2/ws/stream)
and sentence-tokenizes incoming LLM text so each request is a complete
utterance. synthesize() uses the binary streaming endpoint
(POST /stream).
SILMA caps text at 250 characters per request, so longer input is split on
word boundaries and sent as sequential requests concatenated into one audio
segment.
SILMA returns a 24 kHz mono float32 waveform; the plugin converts it to 16-bit PCM for the agent pipeline.
Metadata
Release files for livekit-plugins-silma 1.9.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| livekit_plugins_silma-1.9.0.tar.gz | 15.4 kB | With provenance | Details for livekit_plugins_silma-1.9.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| livekit_plugins_silma-1.9.0-py3-none-any.whl | Python 3 | none | any | Details for livekit_plugins_silma-1.9.0-py3-none-any.whl |
Total release size: 33.3 kB
Release files / livekit_plugins_silma-1.9.0.tar.gz
| Download URL | livekit_plugins_silma-1.9.0.tar.gz |
|---|---|
| Size | 15.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
768709d869657dda6ca9df82058b13116147f7ea342c2bfc5a36ff866a1e73e5
|
|
BLAKE2b-256 checksum How to use checksums |
71da655ab22aec7860413fe81923e3924a2cce3285fb34efcbe7f96df347492e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 25, 2026.
Transparency logRelease files / livekit_plugins_silma-1.9.0-py3-none-any.whl
| Download URL | livekit_plugins_silma-1.9.0-py3-none-any.whl |
|---|---|
| Size | 17.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ed0f8b5e146b9f38c618392b86c7467350cc05b0979dfc7418d63809394549f0
|
|
BLAKE2b-256 checksum How to use checksums |
88375cb06bc73962c4ec8bc24c831da50c2d8b8a2ede3cbe44574944f5dbec83
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 25, 2026.
Transparency logSecurity for livekit-plugins-silma 1.9.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for livekit_plugins_silma-1.9.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 25, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.