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.

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. 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.1

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.1
File Size Uploaded Provenance Actions
discord_voice_reception-1.0.1.tar.gz 262.4 kB With provenance Details for discord_voice_reception-1.0.1.tar.gz

Built distribution (wheel)

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

Total release size: 287.8 kB

Release files / discord_voice_reception-1.0.1.tar.gz

Download URL discord_voice_reception-1.0.1.tar.gz
Size 262.4 kB
Tags Source
SHA-256 checksum
How to use checksums
772cf72a7add0735c97e1cc82679e8a0e1faa89f6d1ad055145d13da80fd009b
BLAKE2b-256 checksum
How to use checksums
c4db77ad7f1dac9f80a58bdf4e3fb56c34c37205284dd59de81cb08c078df25c
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.1-py3-none-any.whl

Download URL discord_voice_reception-1.0.1-py3-none-any.whl
Size 25.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e8263eb3a4c9dfb0c4e9baef72060c7f0b6c847fb9b61a23416165846bb3d949
BLAKE2b-256 checksum
How to use checksums
9ad34db38a443de8471e8f1c6dd31156b666da725e89432babece319741f541b
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.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.

Select from 2 files

Attestation for discord_voice_reception-1.0.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 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