Skip to main content

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.

Every successful main-branch quality run automatically calls the reusable release workflow. Release-worthy development merges publish without readiness switches; docs-only changes do not release. The workflow creates the tag, builds from that tag, validates metadata, attaches SHA-256 checksums and GitHub artifact attestations in the same run. It does not depend on GITHUB_TOKEN tag events launching a separate workflow.

For PyPI, the owner must confirm name availability and register a 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. After publisher registration, failed uploads can be retried with its CI run ID. 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.0

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

Source distribution (sdist)

Source distribution for discord-voice-reception 1.0.0
File Size Uploaded Provenance Actions
discord_voice_reception-1.0.0.tar.gz 255.6 kB With provenance Details for discord_voice_reception-1.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for discord-voice-reception 1.0.0
File Interpreter ABI Platform Actions
discord_voice_reception-1.0.0-py3-none-any.whl Python 3 none any Details for discord_voice_reception-1.0.0-py3-none-any.whl

Total release size: 280.9 kB

Release files / discord_voice_reception-1.0.0.tar.gz

Download URL discord_voice_reception-1.0.0.tar.gz
Size 255.6 kB
Tags Source
SHA-256 checksum
How to use checksums
a3b86b83e054e538f5ea0355bb797a901690bbdb64caf5bd149e0537f6cb3fc2
BLAKE2b-256 checksum
How to use checksums
e96033ea4775046883fae67afb315544aa90f7373d1c36ca0c3ec43417710e57
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 log

Release files / discord_voice_reception-1.0.0-py3-none-any.whl

Download URL discord_voice_reception-1.0.0-py3-none-any.whl
Size 25.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
22aef4cce104775d825106c0711b5a9886670afb86299caa82e0c1d116e3fa25
BLAKE2b-256 checksum
How to use checksums
26d43e0684ff25843112d89b4bec78bd6547333bb16f25901c8d4d95339f1eca
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 log

Security for discord-voice-reception 1.0.0

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 discord_voice_reception-1.0.0.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 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