Skip to main content

livekit-plugins-readaloud

ReadAloud text-to-speech plugin for LiveKit Agents. Status: alpha, unpublished (see ../docs/STATUS_MATRIX.md).

pip install livekit-plugins-readaloud   # not yet on PyPI: install from this directory with `pip install .`
export READALOUD_API_KEY=rtts_...
from livekit.agents import AgentSession
from livekit.plugins import readaloud

session = AgentSession(
    # stt=..., llm=...,
    tts=readaloud.TTS(voice="default", sample_rate=24000),   # sample_rate: 24000 | 16000 | 8000
)

readaloud.TTS(api_key=None, base_url="https://api.readaloudai.org", voice="default", speed=1.0, engine="piper", sample_rate=24000, max_retries=2). synthesize() returns a ChunkedStream; stream() returns a SynthesizeStream that splits LLM tokens into sentences and synthesizes each with its own streaming request (sentence-level pipelining). Closing a stream (barge-in) closes the HTTP connection, which stops generation server-side. Capacity (503/429) becomes a retryable APIStatusError, so LiveKit's APIConnectOptions retry applies on top of the plugin's own pre-audio retries (set max_retries=0 to leave retrying to LiveKit). No aligned transcripts. Tested with livekit-agents==1.8.5; requires livekit-agents>=1.8,<2.

Tests: pip install -e '.[dev]' && pytest.

Metadata

Release files for livekit-plugins-readaloud 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for livekit-plugins-readaloud 0.1.0
File Size Uploaded
livekit_plugins_readaloud-0.1.0.tar.gz 11.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for livekit-plugins-readaloud 0.1.0
File Interpreter ABI Platform
livekit_plugins_readaloud-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 22.4 kB

Release files / livekit_plugins_readaloud-0.1.0.tar.gz

Download URL livekit_plugins_readaloud-0.1.0.tar.gz
Size 11.6 kB
Tags Source
SHA-256 checksum
How to use checksums
c4e9e4c35fccfa8998281f658ca8fb00603d618e9ebe09daae12116dd909d60c
BLAKE2b-256 checksum
How to use checksums
1042d723fd544cab3ed654484e45585e2eef92b192db86daf5a61bf42b28d740
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.6

Release files / livekit_plugins_readaloud-0.1.0-py3-none-any.whl

Download URL livekit_plugins_readaloud-0.1.0-py3-none-any.whl
Size 10.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fc1dfe782e01e3bc44e6cb64822f89233b646b49affbf2611526bb5f4a9e004b
BLAKE2b-256 checksum
How to use checksums
822d8a4dceccea11680ca1e9bba057c8ec9cf961b3303b12a136d071c93b5fc3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.6

Release history Release notifications | RSS feed

0.1.1

2 release files

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page