Skip to content

feat: add SILMA AI TTS plugin - #7160

Open
karimouda wants to merge 3 commits into
livekit:mainfrom
karimouda:silma-tts-plugin
Open

feat: add SILMA AI TTS plugin#7160
karimouda wants to merge 3 commits into
livekit:mainfrom
karimouda:silma-tts-plugin

Conversation

@karimouda

Copy link
Copy Markdown

Adds livekit-plugins-silma, a text-to-speech plugin for SILMA AI's TTS v2 models: English, Modern Standard Arabic, and the Saudi (Najdi) dialect.

Tested against the live API. Includes 44 offline unit tests covering configuration, float32 decoding, text splitting, both transports, and connection-reuse behavior.

I maintain SILMA and I’m happy to keep this plugin up to date. If needed, I can also provide a test API key. I’m glad to draft the documentation page content as well, if that would be helpful.

Adds livekit-plugins-silma, a text-to-speech plugin for SILMA AI's TTS v2
models: English, Modern Standard Arabic, and the Saudi (Najdi) dialect.

- stream() uses the full-duplex WebSocket endpoint with pooled connections
  and sentence tokenization, so each request is a complete utterance.
- synthesize() uses the binary waveform endpoint (POST /stream).
- SILMA returns a 24 kHz mono float32 waveform; the plugin converts it to
  16-bit PCM, buffering samples that straddle a chunk boundary.
- The API caps text at 250 characters per request, so longer input is split
  on word boundaries. SILMA's <STAG_PN>/<STAG_EMAIL>/<STAG_LINK>
  pronunciation hints are kept intact across that split.
- Supports cloned voices (custom_audio_id) and account-level pronunciation
  overrides.

Includes offline unit tests covering configuration, float32 decoding, text
splitting, the HTTP and WebSocket paths, and connection-reuse behavior.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CDYW9y4sTu68aV2ZuPQuAB
@karimouda
karimouda requested a review from a team as a code owner September 7, 2026 22:18
@CLAassistant

CLAassistant commented Sep 7, 2026

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

devin-ai-integration[bot]

This comment was marked as resolved.

devin-ai-integration[bot]

This comment was marked as resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants