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, Chinese, Japanese and French, each a pack you add once. 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: pip install samvada
samvada voices add en zh ja fr # once, the languages you want: each voice and its engine
Each language's voice is one wheel on samvada's GitHub release voices-<version> (en 106 MB,
zh 172, ja 38, fr 58). samvada voices add downloads it, checks it against the sha256 Samvada
pins, and installs every file only after checking it against voices.lock; if GitHub fails, it
takes the same files from Hugging Face one by one. SAMVADA_VOICES_URL points it at a mirror
of the release. A wheel can also be installed with pip (pip install <its URL>); samvada
then takes the voice from it with no network.
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 --disable-fr # skip a language (the caller still passes it);
# several at once: --enable-zh --disable-ja
samvada lang --list # every language: on or off, set where, its voice pack
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
samvada setup --speak-alias # also answer to `speak en "Hello"` (opt-in: the name is
# espeak's on some systems; another `speak` is left alone)
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 takes the files from an installed samvada-voice-<lang> package, else
from the language's wheel on the GitHub release (pinned in src/samvada/voice-packages.toml),
else from the Hub's resolve URLs, resuming partial downloads, and checks every file against the
lock before putting it in place, wherever it came from (SAMVADA_VOICE_PACKAGES=off skips the
packages, installed or on GitHub). 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 terms, which Samvada's MIT license does not cover: en, trained on the
Lessac (Blizzard 2013) data under its research licence; zh, trained on Databaker's BZNSYP,
non-commercial use; ja, the terms of Piper Plus Tsukuyomi-chan and of its corpus, with the
credit ■Piper Plus:つくよみちゃん; fr, SIWIS, CC-BY 4.0. src/samvada/voices.toml links each
one; read them on the model cards before you use or redistribute a voice.
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 20261117.1
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 |
|---|---|---|---|---|
| samvada-20261117.1.tar.gz | 134.1 kB | With provenance | Details for samvada-20261117.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| samvada-20261117.1-py3-none-any.whl | Python 3 | none | any | Details for samvada-20261117.1-py3-none-any.whl |
Total release size: 180.6 kB
Release files / samvada-20261117.1.tar.gz
| Download URL | samvada-20261117.1.tar.gz |
|---|---|
| Size | 134.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
39f2e41debc71ba29ec7240f0a967787e749ebf3eb1b07c70f7be081a3b7d97f
|
|
BLAKE2b-256 checksum How to use checksums |
faa334584dbea8e87ff6d1245a91d5eb46419d5ed1b013192bc472eb295f576b
|
| 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 18, 2026.
Transparency logRelease files / samvada-20261117.1-py3-none-any.whl
| Download URL | samvada-20261117.1-py3-none-any.whl |
|---|---|
| Size | 46.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b19ab3acac171b5836dd3d7a094acfc663e263690a6c98d3a877e3fbc44c4f91
|
|
BLAKE2b-256 checksum How to use checksums |
b678497e91ac91b60245d8082d7a2c99bd06637121f8408a4a4d30be195f4f52
|
| 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 18, 2026.
Transparency logSecurity for samvada 20261117.1
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 samvada-20261117.1.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.