Deterministic contour codec, retrieval, and transfer evaluation surfaces for ZPE Prosody.
Project description
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.jsonproofs/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-C005PAUSED_EXTERNAL(blocked on external dependency), PRO-C006 FAIL)proofs/artifacts/c006_retrieval_failure_analysis.mdproofs/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 bymake 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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file zpe_prosody-0.1.1.tar.gz.
File metadata
- Download URL: zpe_prosody-0.1.1.tar.gz
- Upload date:
- Size: 46.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2a155f0f257fb9c6be167635745e6ed3a9c4b91c166aaf667f58f389758e0894
|
|
| MD5 |
57be8ebdc6fb58258e4dd879cf6a3888
|
|
| BLAKE2b-256 |
b5021e5d6f8f0b6cbdc4462fdaa146aa2b05a0f6d31e690ed13a7f5eba8205f1
|
File details
Details for the file zpe_prosody-0.1.1-py3-none-any.whl.
File metadata
- Download URL: zpe_prosody-0.1.1-py3-none-any.whl
- Upload date:
- Size: 45.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
982057cb9f552aa2d9981c2bd89c2b68a26a4bc4b9a83a297d30f1338f3fdaf4
|
|
| MD5 |
c9d287f42bfce76d96db66336215bbdc
|
|
| BLAKE2b-256 |
ab64110bdf98b965b62a8a053c797b5d69c58bd92d3873d9cf52be5ee303aaff
|