Skip to main content

ZPE-Prosody

Deterministic prosody packet encoding for speech F0, energy, duration, and voiced-mask contour bundles. The ZPRS/v1 codec compresses prosodic feature arrays to 13.0× on real LibriSpeech speech with 0.64% voiced-F0 RMSE and 2.67 ms mean encode latency — byte-stable, round-trip lossless within CI thresholds, no GPU required.

ZPE-Prosody is one of seventeen independent encoding products in the Zer0pa portfolio; it targets speech-technology and voice-analytics teams that need deterministic, reproducible prosodic feature encoding.

Licensed under the Zer0pa Source-Available License v7.0.

Commercial Readiness

Gate Verdict Notes
Core codec (PRO-C001 – PRO-C004) PASS Round-trip fidelity, determinism, extraction, and integration contract — all four pass.
Transfer closure (PRO-C005) BLOCKED Blocked on external dependency; a commercial-safe transfer substitute was not proven in-lane.
Posture (PRO-C005) PAUSED_EXTERNAL Specific posture: PAUSED_EXTERNAL — paused on external dependency, not generic-BLOCKED.
Retrieval closure (PRO-C006) FAIL p@5 = 0.31 vs threshold 0.80 on accepted evidence.
Lane overall FAIL Retrieval and transfer gates are not resolved. Codec primitives are sound.

No lane pass is claimed. No public release tag has been issued. The codec is useful as a deterministic encoding primitive; end-to-end commercial deployment requires resolving the gates above.

CI-Anchored Claims

Claim Proof Artifact CI Test
ZPRS/v1 packets encode and decode contour bundles without changing frame shape or voiced-mask length. proofs/artifacts/2026-02-20_zpe_prosody_wave1/gate_b_roundtrip.json tests/test_packet_format.py::PacketFormatTests::test_encode_decode_shape
Malformed packet magic is rejected through a structured decode error. proofs/artifacts/2026-02-20_zpe_prosody_wave1/gate_d_falsification_summary.json tests/test_packet_format.py::PacketFormatTests::test_bad_magic_raises
Round-trip F0 and energy reconstruction stay below the current CI thresholds on generated contour fixtures. proofs/artifacts/2026-02-20_zpe_prosody_wave1/prosody_f0_fidelity.json, proofs/artifacts/2026-02-20_zpe_prosody_wave1/prosody_energy_fidelity.json tests/test_roundtrip.py::RoundTripTests::test_roundtrip_fidelity
Encoding the same contour bundle with the same metadata is byte-stable. proofs/artifacts/2026-02-20_zpe_prosody_wave1/determinism_replay_results.json tests/test_roundtrip.py::RoundTripTests::test_deterministic_bytes
The in-process API contract supports encode, decode, transfer, and advertised endpoint capability checks. proofs/artifacts/2026-02-20_zpe_prosody_wave1/integration_readiness_contract.json tests/test_api_contract.py

Measured Performance (Proof-Artifact Records)

These metrics come from committed proof-artifact runs, not reasserted per CI push. Each number is anchored to a specific artifact file; the artifact commit is the evidence. CI thresholds are broader than these measured values by design — the proof runs set the floor, CI guards against regression.

Compression (baseline: raw float32 arrays for F0, energy, duration, voiced_mask)

Dataset Samples Mean ratio p50 ratio p95 ratio CI threshold Artifact
LibriSpeech test-clean (real speech, OpenSLR) 100 utterances 13.0× 13.0× 16.6× — proofs/artifacts/librispeech_benchmark/compression_benchmark.json
Librispeech-like fixtures 140 16.6× 16.6× 20.0× ≥15× proofs/artifacts/2026-02-20_zpe_prosody_wave1/prosody_compression_benchmark.json

Fidelity (round-trip encode → decode)

Metric Dataset Samples Mean p95 CI threshold Artifact
Voiced-F0 RMSE LibriSpeech test-clean (real) 100 0.64% 1.21% — proofs/artifacts/librispeech_benchmark/f0_fidelity.json
Voiced-F0 RMSE CMU Arctic-like fixtures 80 0.89% 1.01% 5.0% proofs/artifacts/2026-02-20_zpe_prosody_wave1/prosody_f0_fidelity.json
Energy RMSE CMU Arctic-like fixtures 80 2.08% 2.18% 3.0% proofs/artifacts/2026-02-20_zpe_prosody_wave1/prosody_energy_fidelity.json
Duration (timing) RMSE LibriSpeech test-clean (real) 100 0.000 ms 0.000 ms — proofs/artifacts/librispeech_benchmark/timing_fidelity.json

Encode latency (single-threaded, no GPU)

Dataset Samples Mean p95 Artifact
LibriSpeech test-clean (real) 100 2.67 ms 5.18 ms proofs/artifacts/librispeech_benchmark/latency_benchmark.json
Librispeech-like fixtures 140 2.59 ms 4.14 ms proofs/artifacts/2026-02-20_zpe_prosody_wave1/prosody_latency_benchmark.json

Robustness (malformed-packet falsification campaign)

Test Result Artifact
Malformed packet cases 4/4 decode errors caught, 0.0 uncaught crash rate proofs/artifacts/2026-02-20_zpe_prosody_wave1/gate_d_falsification_summary.json
Determinism replay 5/5 hash-identical runs proofs/artifacts/2026-02-20_zpe_prosody_wave1/determinism_replay_results.json

Non-Promoted Historical Artifacts

The following proof artifacts remain in the repository for audit lineage, but their exact claims are not promoted in this README:

  • proofs/artifacts/2026-02-20_zpe_prosody_wave1/before_after_metrics.json
  • proofs/artifacts/2026-02-20_zpe_prosody_wave1/prosody_retrieval_eval.json (PRO-C006: FAIL — p@5=0.31 vs threshold 0.80)
  • proofs/artifacts/2026-02-20_zpe_prosody_wave1/quality_gate_scorecard.json (overall gate FAIL; PRO-C005 PAUSED_EXTERNAL (blocked on external dependency), PRO-C006 FAIL)
  • proofs/artifacts/c006_retrieval_failure_analysis.md
  • proofs/artifacts/c005_replacement_analysis.md

What Is Not Claimed

  • No lane pass.
  • No retrieval closure above threshold.
  • No commercialization-safe transfer closure.
  • No public release-readiness claim.
  • No speech-codec comparator leadership vs production systems.
  • No MOS claim — transfer evaluation was not executed end to end with a commercially safe transfer stack.

Repo Shape

  • src/zpe_prosody/: installable codec package.
  • tests/: CI-backed package, packet, API, and round-trip checks.
  • scripts/verify_release_surface.py: package surface sanity helper used by make package-sanity.
  • proofs/: historical adjudication artifacts and audit lineage.
  • docs/: architecture, legal-boundary, market-surface, and family notes.

Quick Start

python -m venv .venv
source .venv/bin/activate
python -m pip install -e ".[dev]"
make repo-sanity
make package-sanity
make test

Optional API wrapper dependency:

python -m pip install ".[api]"

The base wheel ships only src/zpe_prosody. No CLI or historical gate harness is packaged as a runtime contract. Read docs/LEGAL_BOUNDARIES.md before widening any claim from this repo state.

Metadata

Release files for zpe-prosody 0.1.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 zpe-prosody 0.1.1
File Size Uploaded Provenance
zpe_prosody-0.1.1.tar.gz 46.2 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for zpe-prosody 0.1.1
File Interpreter ABI Platform
zpe_prosody-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 91.7 kB

Release files / zpe_prosody-0.1.1.tar.gz

Download URL zpe_prosody-0.1.1.tar.gz
Size 46.2 kB
Tags Source
SHA-256 checksum
How to use checksums
2a155f0f257fb9c6be167635745e6ed3a9c4b91c166aaf667f58f389758e0894
BLAKE2b-256 checksum
How to use checksums
b5021e5d6f8f0b6cbdc4462fdaa146aa2b05a0f6d31e690ed13a7f5eba8205f1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.12

Release files / zpe_prosody-0.1.1-py3-none-any.whl

Download URL zpe_prosody-0.1.1-py3-none-any.whl
Size 45.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
982057cb9f552aa2d9981c2bd89c2b68a26a4bc4b9a83a297d30f1338f3fdaf4
BLAKE2b-256 checksum
How to use checksums
ab64110bdf98b965b62a8a053c797b5d69c58bd92d3873d9cf52be5ee303aaff
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.12

Security for zpe-prosody 0.1.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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files No provenance

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