This release is a pre-release and may not be stable for production use.
Rime SDK for Python
Use TTS to turn your text into speech, or Prism to run a conversation with text,
audio, and tool calls. Both use the same Rime client and credentials.
Install
Requires Python 3.11 or later. This package is in alpha.
uv add --prerelease=allow rimelabs-sdk
export RIME_API_KEY="your-api-key"
An explicit Rime(api_key="...") overrides the environment. The SDK does not
load .env files.
TTS quick start
Save playable speech with the WAV example. After the example setup, run from the repository root:
uv run --project examples/python -m examples.python.tts.save
Open speech.wav in your audio player. To hear streamed text as it arrives:
uv run --project examples/python --extra audio -m examples.python.tts.play
Press Ctrl-C to stop generation and playback. Replace the example's async text
source with your LLM's text stream. The SDK handles sentence boundaries.
Coda is the default; select Mist v3 with Rime(model="mistv3").
The TTS guide
covers voices, formats, and cancellation.
Prism quick start
Start a voice conversation: speak into your microphone, hear the reply, and speak again to interrupt it. Use headphones. Your application owns capture and playback.
Set PRISM_URL to your deployment's full WebSocket URL ending in /v1/realtime.
Set PRISM_VOICE to a voice from that deployment unless it has a default.
Obtain these values from your deployment operator; the TTS endpoint does not serve Prism.
After the example setup, run from the repository root:
uv run --project examples/python --extra audio -m examples.python.realtime.voice
Without a microphone, send the included speech recording and save reply.wav:
uv run --project examples/python -m examples.python.realtime.recorded
The voice tool example adds a demo order lookup to the same conversation. The Realtime guide covers audio, tools, playback reports, errors, and optional typed input. TTS client settings do not configure Prism sessions.
Examples and license
Run the examples from a source checkout. They cover WAV output, streamed playback, recorded speech, and voice conversations with interruption and tools.
The SDK uses the MIT license. The Prism protocol module uses Apache 2.0.
Metadata
Release files for rimelabs-sdk 0.1.0a7
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 |
|---|---|---|---|---|
| rimelabs_sdk-0.1.0a7.tar.gz | 135.1 kB | Without provenance | Details for rimelabs_sdk-0.1.0a7.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| rimelabs_sdk-0.1.0a7-py3-none-any.whl | Python 3 | none | any | Details for rimelabs_sdk-0.1.0a7-py3-none-any.whl |
Total release size: 175.7 kB
Release files / rimelabs_sdk-0.1.0a7.tar.gz
| Download URL | rimelabs_sdk-0.1.0a7.tar.gz |
|---|---|
| Size | 135.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c357c841c6b852002f2a881805fe0f5aebf2826a0985ff55604317725804cc40
|
|
BLAKE2b-256 checksum How to use checksums |
7977b1dc0eb695ad144cfe066e98d2fe5ff737769100fd38011aa3886ea8e6a4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.23 {"installer":{"name":"uv","version":"0.12.23","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / rimelabs_sdk-0.1.0a7-py3-none-any.whl
| Download URL | rimelabs_sdk-0.1.0a7-py3-none-any.whl |
|---|---|
| Size | 40.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2b0adb9f9cd050fee31857daa9fdedbf6aa3eb3d3dc76849455237290df0f0d9
|
|
BLAKE2b-256 checksum How to use checksums |
8df8884273fdec174869a2cf916f5d8907e0efbf2768bde71da82ab2ef85c8de
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.23 {"installer":{"name":"uv","version":"0.12.23","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Security for rimelabs-sdk 0.1.0a7
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A 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.