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.3.0.tar.gz (407.0 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.3.0-py3-none-any.whl (131.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: demystify_voice-0.3.0.tar.gz
  • Upload date:
  • Size: 407.0 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.3.0.tar.gz
Algorithm Hash digest
SHA256 f4cce6cb667fa824967b8566b3f58066210f91ba2ddee17e4652b06d78184086
MD5 f3562521d4f1fbbd02fc09b1cb9a6e54
BLAKE2b-256 b713ecc63eaed770475f4f734feeb39a0e14ea5a0f0f53304bb62a27c33b7eae

See more details on using hashes here.

Provenance

The following attestation bundles were made for demystify_voice-0.3.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.3.0-py3-none-any.whl.

File metadata

  • Download URL: demystify_voice-0.3.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.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4b4adcc826ce841d76e0b4415834cb8ee2b3a5c227fef73241bfd33c8d39479d
MD5 66af1aa26046addd8b55ca4d49dd6dfb
BLAKE2b-256 a87e0661290859268e35e36b66fdc40deaf80b73f94e9bfa846588b3a568741b

See more details on using hashes here.

Provenance

The following attestation bundles were made for demystify_voice-0.3.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