Skip to main content

Samvada

A voice for AI agents, offline first. The agent decides what to say; Samvada decides whether, where and how it is heard. Samvada (संवाद, saṃvāda) means dialogue.

  • Offline first. Local voices (Piper) for English and Chinese, French and Japanese as optional packs. Online voices (edge-tts) are off by default, so your text never leaves the machine unless you turn them on.
  • Plays only where you are. Silent when the screen is locked, when you are muted, or when your last input came from your phone instead of this desk. Silence is never an error.
  • One call, every language. The caller passes all its languages in order; Samvada skips the ones that are off or have no voice installed.
  • No dependencies. The package itself is pure Python; each voice engine runs in its own folder, with pinned versions.

Status: alpha. Linux (GNOME) is the tested platform.

Install

uv tool install samvada          # or: pipx install samvada, pip install samvada
samvada voices add en zh         # once: about 290 MB, downloaded and verified

Use

samvada speak en "Hello" zh "你好"   # plays in this order, then exits
samvada status                      # where the voice goes now, and why
samvada mute "watching TV"          # silent until `samvada unmute`
samvada lang off fr                 # skip a language (the caller still passes it)
samvada --session mute              # the same, for this terminal session only
samvada online fallback             # allow edge-tts for a language that fails offline
                                    #   (needs: pip install 'samvada[online]')
samvada presence phone              # a chat bridge says: the owner just wrote from the phone
samvada voices verify               # check the installed voices against their checksums

Exit codes: 0 played, or silent by decision; 1 a language failed; 2 bad usage.

Voice packs

Every file a pack needs is pinned in src/samvada/voices.lock: a commit on the Hugging Face Hub (or a URL at a commit), with its size and sha256. samvada voices add downloads from the Hub's resolve URLs, resumes partial downloads, and checks every file before putting it in place. Nothing needs configuring; optionally HF_ENDPOINT points at a mirror and HF_TOKEN lifts anonymous rate limits.

Pack Voice Engine Source
en en_US-lessac-high Piper rhasspy/piper-voices
zh zh_CN-xiao_ya-medium + g2pW + BERT tokenizer Piper rhasspy/piper-voices, rhasspy/piper-checkpoints, google-bert/bert-base-chinese
ja Tsukuyomi-chan piper-plus ayousanz/piper-plus-tsukuyomi-chan + NLTK data
fr fr_FR-siwis-medium Piper rhasspy/piper-voices

Each voice keeps its own license; see its model card on the Hub before you redistribute it.

Where things live

What Where
Settings (mute, languages, online mode, sessions) $XDG_STATE_HOME/samvada/
Voices, engines $XDG_DATA_HOME/samvada/{voices,engines}/ (or $SAMVADA_VOICES, $SAMVADA_ENGINES)

Develop

uv run pytest -q                     # fake engines, player, desktop and Hub: no audio, no network
uv run python release/bundle.py <version> --test   # the standalone bundle and its offline test

License

MIT, see LICENSE. The voices are not part of this package; they are downloaded from their own repositories under their own licenses.

Metadata

Release files for samvada 20261111.2

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

Source distribution (sdist)

Source distribution for samvada 20261111.2
File Size Uploaded Provenance Actions
samvada-20261111.2.tar.gz 113.5 kB With provenance Details for samvada-20261111.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for samvada 20261111.2
File Interpreter ABI Platform Actions
samvada-20261111.2-py3-none-any.whl Python 3 none any Details for samvada-20261111.2-py3-none-any.whl

Total release size: 150.4 kB

Release files / samvada-20261111.2.tar.gz

Download URL samvada-20261111.2.tar.gz
Size 113.5 kB
Tags Source
SHA-256 checksum
How to use checksums
dad5bbeb0ff77505d77051d15e506f77ce6006410737adf216fcd4da72d3767b
BLAKE2b-256 checksum
How to use checksums
f021be21a96ea26e6590e46d7a27bf932b413b708722b5d5364e233097e04081
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 11, 2026.

Transparency log

Release files / samvada-20261111.2-py3-none-any.whl

Download URL samvada-20261111.2-py3-none-any.whl
Size 36.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
155281311d7c81bd4cef1c1da73c40118728aff42f08918f007015d2b0808013
BLAKE2b-256 checksum
How to use checksums
df9ef3bd1c777ab162fdd5db6c52599fa279aef783f56a70c7ad4ad06ecfa883
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 11, 2026.

Transparency log

Security for samvada 20261111.2

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.

Select from 2 files

Attestation for samvada-20261111.2.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 11, 2026.

Transparency log

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.

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