Skip to main content

Interruption-aware voice agent runtime (barge-in, spoken-prefix truncation, multi-turn context repair)

Project description

demystify-voice

Interruption-aware voice-agent runtime: low-latency barge-in (client-audible stop within one sub-chunk), spoken-prefix truncation (the interrupted assistant turn keeps only the audio the caller actually heard), backchannel vs barge-in discrimination, and multi-turn context repair.

This is the packaged runtime of the dmstfy-voice-core module. The full module docs (architecture, harness, runbooks, contracts) live in the repository at modules/dmstfy-voice-core/.

Install

pip install demystify-voice                 # core runtime + pipeline
pip install "demystify-voice[server]"       # + FastAPI/uvicorn control plane (demystify_voice.api)
pip install "demystify-voice[pg]"           # + Postgres write-behind store adapter

The core install is intentionally light. demystify_voice.api (the HTTP/WS control plane) requires the server extra; the module imports fine without it and raises a clear error if you import the api without the extra.

Public protocol surface

Plugins (e.g. demystify-voice-lingua) code against these stable exports — see docs/contracts/voice-plugin-protocol.md:

  • demystify_voice.frames — frame dataclasses
  • demystify_voice.stageStage, StageContext, Clock
  • demystify_voice.pipelinePipeline plugin API (insert_stage, replace_stage)
  • demystify_voice.PROTOCOL_VERSION — plugin-protocol contract version (MAJOR.MINOR)

Quickstart (offline, zero keys)

from demystify_voice import SessionRuntime  # inject mock providers; drive with the SimClock

MIT licensed.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

demystify_voice-0.2.0.tar.gz (406.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

demystify_voice-0.2.0-py3-none-any.whl (131.3 kB view details)

Uploaded Python 3

File details

Details for the file demystify_voice-0.2.0.tar.gz.

File metadata

  • Download URL: demystify_voice-0.2.0.tar.gz
  • Upload date:
  • Size: 406.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for demystify_voice-0.2.0.tar.gz
Algorithm Hash digest
SHA256 9bc8db9120c6ac9dca3fcfe6d1fa77e0a0b773b889db830b1a2530d629816865
MD5 00dc2327592c2fe8c98c7fe18b71668b
BLAKE2b-256 fd604acea88980432e372dff188fba7b70368473ac92d0fe278bc80c9cb1246f

See more details on using hashes here.

Provenance

The following attestation bundles were made for demystify_voice-0.2.0.tar.gz:

Publisher: publish-pypi.yml on demystify-systems/ai-services-tools

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file demystify_voice-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: demystify_voice-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 131.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for demystify_voice-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d3eda4e98d704e8d28c3497ae88b66256597aa74dcad48f524406db2678d333f
MD5 0d717505a01b10fda5e660a5659e1961
BLAKE2b-256 1b5f741851703c45634feb760f745b057901ed608579637886ca9bb36b3546bf

See more details on using hashes here.

Provenance

The following attestation bundles were made for demystify_voice-0.2.0-py3-none-any.whl:

Publisher: publish-pypi.yml on demystify-systems/ai-services-tools

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page