Skip to main content

sonara-client

Talk to the Sonara text-to-speech runtime from Python 3.9+. Standard library only.

import sonara_client

with sonara_client.connect("my-app", runtime_path=r"C:\path\to\sonarad.exe") as sonara:
    item = sonara.speak("Hello.", label="greeting")
    sonara.set("rate", 240)
    with sonara.subscribe(["state", "items"]) as events:
        for e in events:
            if e["event"] == "item" and e["item_id"] == item and e["phase"] != "started":
                break
  • connect(client_name, *, runtime_path=None, home=None, autostart=True, require=(), extensions=(), keep_alive=False): finds the shared runtime through runtime.json, starts the bundled sonarad.exe when none is usable (runtime_path, default SONARA_RUNTIME), takes over an idle incompatible one.
  • speak(text, mode=None, interrupt=None, label=None) returns the item id; control(action); set(key, value) / get(key); voices(engine=None).
  • subscribe(events) opens an event stream on its own connection: iterate it, or read(timeout).
  • channels, agent, system: extension namespaces that send the protocol's extension messages as they are.
  • Errors are SonaraError with a code. The client is thread-safe.

Guide: Bundle Sonara in your app. Tests: python -m pytest clients/python/tests -q (the end-to-end ones need cargo build -p sonarad).

MIT. Ship THIRD_PARTY_NOTICES.md with an app that bundles the runtime.

Metadata

Release files for sonara-client 0.32.7

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

Source distribution (sdist)

Source distribution for sonara-client 0.32.7
File Size Uploaded
sonara_client-0.32.7.tar.gz 20.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for sonara-client 0.32.7
File Interpreter ABI Platform
sonara_client-0.32.7-py3-none-any.whl Python 3 none any Details

Total release size: 37.2 kB

Release files / sonara_client-0.32.7.tar.gz

Download URL sonara_client-0.32.7.tar.gz
Size 20.5 kB
Tags Source
SHA-256 checksum
How to use checksums
5bbd2276bdd2f39eedc0360b164dad9cbd76e2f627f98c03f87ee0ab3b4da07c
BLAKE2b-256 checksum
How to use checksums
050bce3842e94eba9bd480290a0a7ec5f8d1a45201d52f1af686be7732f6a707
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 Oct 16, 2026.

Transparency log

Release files / sonara_client-0.32.7-py3-none-any.whl

Download URL sonara_client-0.32.7-py3-none-any.whl
Size 16.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b7fea7979d95e49e5d5ae6475d8c679a837a4d3b725dfdf21f64edaa6ebcf7a1
BLAKE2b-256 checksum
How to use checksums
9d2833f3a527756c07c5377d6cfa7e4ceba326f1a6aad2a17b5bbba5e04ce035
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 Oct 16, 2026.

Transparency log

Release history Release notifications | RSS feed

0.32.9

2 release files

0.32.8

2 release files

This release

0.32.7 This release

2 release files

0.32.6

2 release files

0.32.5

2 release files

0.32.4

2 release files

0.32.3

2 release files

0.32.2

2 release files

0.32.1

2 release files

0.32.0

2 release files

0.31.3

2 release files

0.31.2

2 release files

0.31.1

2 release files

0.31.0

2 release files

0.30.0

2 release files

0.29.1

2 release files

0.29.0

2 release files

0.28.1

2 release files

0.28.0

2 release files

0.27.0

2 release files

0.26.0

2 release files

0.25.0

2 release files

0.24.0

2 release files

0.23.0

2 release files

0.22.2

2 release files

0.22.1

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