DiscordVoiceReception
A reusable Python voice-reception library extending discord.py. Speech recognition, profanity rules and leaderboard logic belong in consumers.
Current status: experimental receiver, awaiting live qualification. The package provides bounded speaker-attributed Opus/PCM delivery through VoiceRecvClient and asynchronous sinks. Offline fixtures cover transport authentication, decoding, DAVE session readiness, mapping and lifecycle. Live DAVE negotiation/decryption acceptance remains DEG-11; no functional release is qualified.
See receive API, dependency review and compatibility and the opt-in disposable-server example. Runtime pins are discord.py 2.7.1 and davey 0.1.7, with PyNaCl 1.5.0 in uv.lock. The library owns no speech recognition, profanity, analytics or persistent audio.
The guarded qualification harness runs bounded PCM attribution/move/reconnect checks only with explicit opt-in and a separate disposable test configuration. Normal pytest skips live tests without logging in.
Development
Install uv and Node.js 24, then run:
npm ci
uv sync --locked --all-groups
uv run ruff check .
uv run ruff format --check .
uv run ty check
uv run pytest
npm run test:release
npm run spec:validate
uv run python scripts/check_openspec.py
uv build
PowerShell 7 is required for Git fixture operations so workstation identity profiles remain active. Tests use generated local data and do not connect to Discord. Do not use production servers for tests; later live qualification must explicitly opt in to a disposable server and never store third-party audio.
Contributions
Use scoped Conventional Commit PR titles, e.g. feat(receiver): add audio sinks and docs(setup): clarify installation. Prefer squash merge. Each substantive change completes proposal, design, delta specs, implementation/tasks, tests and verification, then archive plus canonical spec synchronization in the same PR. Root AGENTS.md is the contributor contract. CI rejects active or incomplete changes. Related Linear issues may share one cohesive change.
Version and releases
Git tags are the sole version source. Hatchling and uv-dynamic-versioning derive PEP 440 metadata; the runtime version helper reads importlib.metadata and falls back to 0.0.0. There is no editable version constant. The configured semantic-release 25 analyzer owns classification: breaking changes major, feats minor, configured maintenance patch, documentation alone no release.
CI runs code checks once on Linux, then builds and installs saved wheels on Linux/Windows in parallel, then resolves and publishes main releases from those saved distributions. A read-only preview uses the actual semantic-release engine and local candidate Git tags; final source/version guards run before public tagging. PRs stop after builds, docs-only changes do not release, and publication never rebuilds. Checksums and attestations accompany the exact validated bytes. Build jobs use the packaging-only dependency group rather than repeating code checks.
PyPI uses the registered trusted publisher for owner s116821, repository DiscordVoiceReception, workflow publish.yml, environment pypi. The standalone publish.yml workflow automatically uploads the original successful main CI run’s distributions; no readiness variable or PyPI API token is used. Only a successful GitHub release produces its release-distributions artifact, so stale/docs-only runs cannot publish. Failed uploads can be retried with the original CI run ID. An explicit retry may recover its saved Linux build when a post-tag failure omitted that artifact, but only after original CI succeeds and the source/tag/package hashes match an already published GitHub release. Nothing is rebuilt or retagged. The independently versioned distribution name is discord-voice-reception and the import is discord_voice_reception.
Provenance and license
GPL-3.0-only; preserve the existing LICENSE. Engineering/versioning baseline adapted from s116821/OnVelvetVelma at commit a5964e3fe7d83e7a27d655c324a76eda28cb387c (corrected PR #11). Receive/DAVE design ancestry and retained MIT notices are recorded in NOTICE and licenses/. Dependency licenses remain applicable.
Metadata
Release files for discord-voice-reception 1.0.2
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 |
|---|---|---|---|---|
| discord_voice_reception-1.0.2.tar.gz | 265.9 kB | With provenance | Details for discord_voice_reception-1.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| discord_voice_reception-1.0.2-py3-none-any.whl | Python 3 | none | any | Details for discord_voice_reception-1.0.2-py3-none-any.whl |
Total release size: 291.4 kB
Release files / discord_voice_reception-1.0.2.tar.gz
| Download URL | discord_voice_reception-1.0.2.tar.gz |
|---|---|
| Size | 265.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8b55268a2ac11940e45ccfa5aade470c77de306e11cbc6218f4a7bdda0198a96
|
|
BLAKE2b-256 checksum How to use checksums |
56a97fcfbd3a2084044e9189d6fbc3b958928d24028411d2da37bceae1869255
|
| 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 14, 2026.
Transparency logRelease files / discord_voice_reception-1.0.2-py3-none-any.whl
| Download URL | discord_voice_reception-1.0.2-py3-none-any.whl |
|---|---|
| Size | 25.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5ca0f03646f33453dd7e7025edd32ce337a88cad1ed83c5322b7f73ea90fe8d6
|
|
BLAKE2b-256 checksum How to use checksums |
e312cc7147c19c4e6e0dd4729ae66814325e81fcefaddae9c6465e7c12b65480
|
| 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 14, 2026.
Transparency logSecurity for discord-voice-reception 1.0.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.
Attestation for discord_voice_reception-1.0.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 Oct 14, 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.