This release is a pre-release and may not be stable for production use.
Rime plugin for LiveKit Agents
Support for voice synthesis with the Rime API.
See https://docs.livekit.io/agents/integrations/tts/rime/ for more information.
Installation
pip install livekit-plugins-rime
Pre-requisites
You'll need an API key from Rime. It can be set as an environment variable: RIME_API_KEY
Streaming and one-shot synthesis
stream() speaks over Rime's WebSocket v1 API; synthesize() uses the HTTP API. The endpoint
follows the model: Coda streams from wss://coda.api.rime.ai/ws (the default) and Mist v3 from
wss://mist.api.rime.ai/ws. Mist v2 synthesizes over HTTP only.
import os
from livekit.plugins import rime
tts = rime.TTS(model="coda", speaker="lyra", api_key=os.environ["RIME_API_KEY"])
A dedicated endpoint is passed as websocket_url, with its model when its path is only /ws:
tts = rime.TTS(
websocket_url="wss://tigerstripe-dialpad.aws-us-east-1.whiteglove.rime.ai/ws",
model="coda",
api_key=os.environ["RIME_API_KEY"],
)
The plugin sends the Rime API key to the endpoint. It trusts rime.ai and its subdomains by
default. To use an endpoint on a different domain, confirm that you trust it and set
allow_custom_endpoint=True. This opt-in also applies to base_url.
websocket_protocol is binary (the rime.v1.binary subprotocol, protobuf frames, the
default) or json (rime.v1.json, proto3 JSON text frames).
The speaker defaults to lyra for Coda and cove for Mist. The plugin sends the resolved
sample rate in every request so it matches the audio emitter's rate; pass sample_rate to
override the model default.
audio_format selects the streamed audio's format: audio/pcm (the default), audio/wav,
audio/mpeg, audio/ogg;codecs=opus, audio/webm;codecs=opus or audio/pcmu. HTTP synthesis
returns PCM.
time_scale_factor controls the speed. The Coda generation controls (repetition_penalty,
temperature, top_p, max_tokens) apply to HTTP synthesis only.
Each segment of a stream is one Rime context: start, its text, then end, answered by
done. Closing a stream mid-segment sends cancel. Sockets are reused by later streams, one
stream at a time each. The v1 protocol sends no word timestamps.
Metadata
Release files for livekit-plugins-rime 2.0.0b2
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_rime-2.0.0b2.tar.gz | 11.7 kB | With provenance | Details for livekit_plugins_rime-2.0.0b2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| livekit_plugins_rime-2.0.0b2-py3-none-any.whl | Python 3 | none | any | Details for livekit_plugins_rime-2.0.0b2-py3-none-any.whl |
Total release size: 25.2 kB
Release files / livekit_plugins_rime-2.0.0b2.tar.gz
| Download URL | livekit_plugins_rime-2.0.0b2.tar.gz |
|---|---|
| Size | 11.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
526c36f32d2bcd8fe3c4d37ec1fea0c0d45805047fb9172afe43b029eb036fd9
|
|
BLAKE2b-256 checksum How to use checksums |
9685b9b62ddb0e07cb6cbcd04505f61962f8550c6aaf314a587798c5d0340a9d
|
| 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 18, 2026.
Transparency logRelease files / livekit_plugins_rime-2.0.0b2-py3-none-any.whl
| Download URL | livekit_plugins_rime-2.0.0b2-py3-none-any.whl |
|---|---|
| Size | 13.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bfecde2cfee480dc0d8f4a910d48684dd3bb637bc712439671f9581a4443048c
|
|
BLAKE2b-256 checksum How to use checksums |
d9c271f25919e6c96e66ed9fe3b2a2d5a52ccb848bd23750fa935c3ef6e467c2
|
| 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 18, 2026.
Transparency logSecurity for livekit-plugins-rime 2.0.0b2
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_rime-2.0.0b2.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 18, 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.