Release v2.15.0: Implement /calc/ (haiperdohpjematreeah) Group 3 homepage UI parity & hyperdope-ci-build upstream patch integration (Plan #60) and parallel CMU Flite kal16/slt + broadcast DSP voice mastering for /quant/ guided tour (Plan #59 Strategies 1A/2A/3A)
This commit is contained in:
1 parent
edb527a590
commit
7738a6de5e
13 files changed
+113
-170
No files matched your search
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"version": "2.14.0",
|
||||
"version": "2.15.0",
|
||||
"archive_classification": "archived_inactive_plans",
|
||||
"bundle_filename": "inactive-plans-archive.tar.gz",
|
||||
"bundle_policy": "md_only_single_layer_bounded_with_git_citation_rotation",
|
||||
@@ -35,7 +35,7 @@
|
||||
"companion_pdf_sha256": "bcddde27a678b0b234347065df34c089d23fb2308534d420089955e8ba1ab9a0",
|
||||
"companion_pdf_size_bytes": 92160,
|
||||
"git_commit_sha": "b2049beb38fb6c443a655f121135e7f92fedf9ab",
|
||||
"git_release_tag": "v2.14.0",
|
||||
"git_release_tag": "v2.15.0",
|
||||
"git_citation_url": "https://git.libre.audio/seasharp/encyclopedia-knowledge-graph/src/commit/b2049beb38fb6c443a655f121135e7f92fedf9ab/docs/plans/inactive/PLAN-ECOSYSTEM-WIDE-ECONOMIZATION-EVALUATION-AND-VECTORS.md",
|
||||
"git_source_path": "docs/plans/inactive/PLAN-ECOSYSTEM-WIDE-ECONOMIZATION-EVALUATION-AND-VECTORS.md"
|
||||
},
|
||||
@@ -49,7 +49,7 @@
|
||||
"companion_pdf_sha256": "3e04f3427f0cefe19e1197399c7cc236d0f0a518ef4087dc0577498c899e92fe",
|
||||
"companion_pdf_size_bytes": 82722,
|
||||
"git_commit_sha": "b2049beb38fb6c443a655f121135e7f92fedf9ab",
|
||||
"git_release_tag": "v2.14.0",
|
||||
"git_release_tag": "v2.15.0",
|
||||
"git_citation_url": "https://git.libre.audio/seasharp/encyclopedia-knowledge-graph/src/commit/b2049beb38fb6c443a655f121135e7f92fedf9ab/docs/plans/inactive/PLAN-HEADER-SUBTITLE-TELEMETRY-CONSOLIDATION-ALTERNATIVE.md",
|
||||
"git_source_path": "docs/plans/inactive/PLAN-HEADER-SUBTITLE-TELEMETRY-CONSOLIDATION-ALTERNATIVE.md"
|
||||
},
|
||||
@@ -63,7 +63,7 @@
|
||||
"companion_pdf_sha256": "b4e30a70abc5687c10e7c588f2f7f906ff0de04744765870f55f9462670fefb2",
|
||||
"companion_pdf_size_bytes": 85529,
|
||||
"git_commit_sha": "b2049beb38fb6c443a655f121135e7f92fedf9ab",
|
||||
"git_release_tag": "v2.14.0",
|
||||
"git_release_tag": "v2.15.0",
|
||||
"git_citation_url": "https://git.libre.audio/seasharp/encyclopedia-knowledge-graph/src/commit/b2049beb38fb6c443a655f121135e7f92fedf9ab/docs/plans/inactive/PLAN-HOMEPAGE-QUADRANT-EXPLORATORY-FEATURES-DEFERRED-STRATEGIES.md",
|
||||
"git_source_path": "docs/plans/inactive/PLAN-HOMEPAGE-QUADRANT-EXPLORATORY-FEATURES-DEFERRED-STRATEGIES.md"
|
||||
},
|
||||
@@ -77,7 +77,7 @@
|
||||
"companion_pdf_sha256": "3bffabc233869ca4f429d2c0bf66b3fd8cf85b88edf56fa45b8f41e728813dce",
|
||||
"companion_pdf_size_bytes": 82809,
|
||||
"git_commit_sha": "b2049beb38fb6c443a655f121135e7f92fedf9ab",
|
||||
"git_release_tag": "v2.14.0",
|
||||
"git_release_tag": "v2.15.0",
|
||||
"git_citation_url": "https://git.libre.audio/seasharp/encyclopedia-knowledge-graph/src/commit/b2049beb38fb6c443a655f121135e7f92fedf9ab/docs/plans/inactive/PLAN-PIECEWISE-DECLUTTER-HOMEPAGE-UI-CLOSEUPS-DEFERRED-STRATEGIES.md",
|
||||
"git_source_path": "docs/plans/inactive/PLAN-PIECEWISE-DECLUTTER-HOMEPAGE-UI-CLOSEUPS-DEFERRED-STRATEGIES.md"
|
||||
},
|
||||
@@ -91,7 +91,7 @@
|
||||
"companion_pdf_sha256": "ba0e195190e4e3a2ca9070b3564cc28db472b1ee3ae629e98ec43dc3322f1cf7",
|
||||
"companion_pdf_size_bytes": 87445,
|
||||
"git_commit_sha": "b2049beb38fb6c443a655f121135e7f92fedf9ab",
|
||||
"git_release_tag": "v2.14.0",
|
||||
"git_release_tag": "v2.15.0",
|
||||
"git_citation_url": "https://git.libre.audio/seasharp/encyclopedia-knowledge-graph/src/commit/b2049beb38fb6c443a655f121135e7f92fedf9ab/docs/plans/inactive/PLAN-PIECEWISE-MARKET-RESEARCH-DEFERRED-CANDIDATE-STRATEGIES.md",
|
||||
"git_source_path": "docs/plans/inactive/PLAN-PIECEWISE-MARKET-RESEARCH-DEFERRED-CANDIDATE-STRATEGIES.md"
|
||||
},
|
||||
@@ -105,11 +105,11 @@
|
||||
"companion_pdf_sha256": "f166bfa3cee33326e6b9ade68593af0471d19dfe83ce8d101d67ece07e800860",
|
||||
"companion_pdf_size_bytes": 84345,
|
||||
"git_commit_sha": "b2049beb38fb6c443a655f121135e7f92fedf9ab",
|
||||
"git_release_tag": "v2.14.0",
|
||||
"git_release_tag": "v2.15.0",
|
||||
"git_citation_url": "https://git.libre.audio/seasharp/encyclopedia-knowledge-graph/src/commit/b2049beb38fb6c443a655f121135e7f92fedf9ab/docs/plans/inactive/PLAN-PIECEWISE-UI-EVOLUTION-FOR-GROWING-DATASETS-DEFERRED-STRATEGIES.md",
|
||||
"git_source_path": "docs/plans/inactive/PLAN-PIECEWISE-UI-EVOLUTION-FOR-GROWING-DATASETS-DEFERRED-STRATEGIES.md"
|
||||
}
|
||||
],
|
||||
"long_term_git_storage_citations": [],
|
||||
"manifest_dag_json_cid": "baguqeera6hqgmdougcrfj3u4wa7hrujdlsrregt4dmtjsoh53l5hpug5kypq"
|
||||
"manifest_dag_json_cid": "baguqeerax6i2jaco3gol3p6lkvqscfkk6ihjvmkvwihsh4rypxtxntgg7ghq"
|
||||
}
|
||||
@@ -1,88 +0,0 @@
|
||||
# PLAN: High-Naturalness Zero-Git-Audio Voice Upgrade for `/quant/` Guided Tour with `< 1.5s` Cold / `0ms` Warm Deployment Overhead (`Audit Points 1–3`, `Rule C` Piecewise Specification)
|
||||
|
||||
**Document ID:** `PLAN-PIECEWISE-QUANT-VOICE-QUALITY-AND-FAST-DEPLOY-SYNTHESIS`
|
||||
**Status:** `PENDING AUDIT PIECEWISE (0/3 AUDIT POINTS AFFIRMED — READY FOR STEPWISE REVIEW)`
|
||||
**Target Ecosystem Version:** `v2.15.0`
|
||||
**Target Repositories:** `hyperstitionstudio-core`, `encyclopedia-knowledge-graph`
|
||||
**Author:** m00t & Hermes Agent
|
||||
**Date:** 2026-12-01
|
||||
|
||||
---
|
||||
|
||||
## 1. Ground-Truth Audit & Empirical Latency/Quality Benchmarks (`Rule C.1`)
|
||||
|
||||
We benchmarked all offline, zero-API-key Linux speech synthesis engines across all `25` `/quant/` guided tour scenes (`~1,250` spoken words total) inside the sandbox to measure exact synthesis wall-clock time, acoustic quality, and deployment impact:
|
||||
|
||||
| Engine & Voice Profile | Acoustic Mechanism & Naturalness vs. Raw `espeak-ng -v en-us` | Cold Build Time (`25` Scenes in Parallel) | Warm Build Time (`voice-manifest.json` Cache Hit) | Git Source-Control Footprint |
|
||||
| :--- | :--- | :---: | :---: | :---: |
|
||||
| **Baseline (`v2.13.0`):**<br/>Sequential `espeak-ng -v en-us -s 168` | Unfiltered rectangular-pulse formant synthesis (`22.05 kHz`); harsh metallic buzz on sibilants, flat prosody, and sequential 25-process loop. | `~1,850 ms` | `~45 ms` | `0` bytes (`.gitignore`d) |
|
||||
| **Candidate 1 (`CMU Flite kal16` Diphone Concatenation + Warm-Broadcast Acoustic Mastering):**<br/>`flite -voice kal16` (`16 kHz` recorded human diphone database) + 1st-order Butterworth high-cut de-esser (`6.2 kHz`) & soft-knee broadcast limiter | Concatenates real recorded human speech diphones (`16 kHz`) rather than synthetic square-wave oscillators, eliminating `espeak-ng`'s metallic formant buzz while running in C at `12x` real-time speed. | **`1,223.0 ms` (`1.22 s` cold across 8 workers)** | **`< 15 ms` (`0` scenes rebuilt on warm sync)** | **`0` bytes** (`.gitignore`d) |
|
||||
| **Candidate 2 (`CMU Flite slt` Statistical Parametric HMM `clustergen` Voice — Background Async Upgrade):**<br/>`flite -voice slt` (CMU Arctic female neural/statistical voice) | Smooth statistical parametric HMM prosody and natural human timbre, but CPU-intensive (`~16.8 s` for all 25 scenes if run synchronously; **`0 ms` deployment impact** if `ep01-s1` is rendered synchronously and scenes `2–25` upgrade asynchronously in a detached background job after `sync-vps-repos.sh` finishes!). | **`650 ms` blocking (`ep01-s1` only) + `16.0 s` non-blocking background upgrade** | **`< 15 ms` (`0` scenes rebuilt when `scripts_sha256` matches)** | **`0` bytes** (`.gitignore`d) |
|
||||
| **Candidate 3 (`espeak-ng -v en-us+klatt4` / `+f3` Klatt Glottal Resonator + DSP Mastering):**<br/>Klatt cascade/parallel glottal source + prosodic comma/clause breath pauses + DSP de-essing | Replaces `espeak-ng`'s standard buzzy excitation with the Klatt4 natural glottal pulse source (`-v en-us+klatt4 -p 46 -s 158 -g 4`) and applies warm low-pass de-essing. | **`2,678.6 ms` (`2.68 s` cold)** | **`< 15 ms`** | **`0` bytes** (`.gitignore`d) |
|
||||
|
||||
---
|
||||
|
||||
## 2. Four Factual Binary Engineering Gates (`G1–G4`)
|
||||
|
||||
- **`Gate G1` (`0` Audio Files in Git Source Control):** `site/quant/audio/` remains strictly `.gitignore`d (`0` `.wav`/`.mp3` files tracked in Git).
|
||||
- **`Gate G2` (`<= 1.5s` Cold Deployment Impact & `< 20ms` Warm Deployment Impact):** `sync-vps-repos.sh` never blocks on slow single-threaded synthesis; unchanged scenes are skipped at the per-scene SHA-256 level (`per_clip_sha256`).
|
||||
- **`Gate G3` (Audibly Warmer, Natural Human Diphone/Parametric Timbre + Domain Pronunciation Dictionary):** Eliminates raw `espeak-ng` metallic buzz and pronounces domain terms (`NVDA` $\to$ *"Nvidia"*, `ASML` $\to$ *"A S M L"*, `CIDv1` $\to$ *"C I D version one"*, `bps` $\to$ *"basis points"*, `AQ` $\to$ *"A Q"*, `FRED` $\to$ *"Federal Reserve FRED"*) naturally.
|
||||
- **`Gate G4` (`ProtectSystem=strict` `EROFS` & Two-Script Deployment Invariant):** Fully automated inside `deploy/sync-vps-repos.sh` and `hs-quant-voice-build`.
|
||||
|
||||
---
|
||||
|
||||
## 3. Piecewise Audit Points & Candidate Strategies (`Strategies 1A–1C` through `3A–3C`, `Rule C.2`)
|
||||
|
||||
---
|
||||
|
||||
### Audit Point 1: Acoustic Synthesis Engine & Zero-Wait Deployment Architecture (`src/hyperstitionstud_io/publishing/quant_voice.py` & `deploy/sync-vps-repos.sh`)
|
||||
|
||||
- **Strategy `1A` (Instant Parallel `flite -voice kal16` Diphone Baseline [`1.2s` Cold / `0ms` Warm] + Optional Non-Blocking Background Upgrade to `flite -voice slt` Statistical Voice + Per-Clip SHA-256 Incremental Cache — Recommended Candidate):**
|
||||
- **How It Works:**
|
||||
1. **Per-Clip SHA-256 Incremental Caching:** Instead of rebuilding all 25 `.wav` files when a single scene's text changes, `voice-manifest.json` records `text_sha256` per clip (`ep01-s1 .. ep05-s5`) and only synthesizes clips whose text changed (`0 ms` on warm deployments; `~50 ms` if 1 scene is edited).
|
||||
2. **Two-Stage Zero-Wait Synthesis (`kal16` Instant Pass + `slt` Background Polish):**
|
||||
- During `sync-vps-repos.sh`, `hs-quant-voice-build` provisions `flite` + `espeak-ng` and synthesizes any missing clips in parallel across CPU cores using `flite -voice kal16` (recorded human diphone voice, completing all 25 clips in **`1.22 seconds`** cold—or `espeak-ng -v en-us+klatt4` if `flite` is absent) so every clip is immediately available the instant deployment finishes.
|
||||
- If `--upgrade-slt-background` (or `--voice slt`) is enabled, a low-priority `nice -n 19` background worker atomically upgrades each clip in-place (`os.replace`) to the smooth CMU Arctic `slt` statistical parametric voice over the next `~15 seconds` without blocking `sync-vps-repos.sh` for a single millisecond!
|
||||
- **Strategy `1B` (Synchronous Parallel `flite -voice kal16` Diphone Voice Only — `1.22s` Cold / `0ms` Warm Candidate):**
|
||||
- Uses `flite -voice kal16` (`1.22s` parallel cold build) + per-clip SHA-256 caching as the sole voice engine, without spawning a background `slt` statistical voice upgrade pass.
|
||||
- **Strategy `1C` (Tuned Parallel `espeak-ng -v en-us+klatt4 -s 158 -p 46 -g 4` Only — `2.68s` Cold / `0ms` Warm Candidate):**
|
||||
- Uses `espeak-ng`'s `en-us+klatt4` glottal variant without `flite`.
|
||||
|
||||
---
|
||||
|
||||
### Audit Point 2: Broadcast Acoustic Mastering & Prosodic Pronunciation Lexicon (`quant_voice.py` & `quant-tutorials.js`)
|
||||
|
||||
- **Strategy `2A` (Pure-Python Broadcast DSP Mastering Pass [De-Esser + Warmth Filter + Peak Normalization] + Domain Pronunciation Lexicon — Recommended Candidate):**
|
||||
- **What Changes (`< 80 ms` total across all 25 clips in Python):**
|
||||
1. **Domain Pronunciation & Prosodic Pacing Lexicon (`normalize_speech_prosody()`):** Expands abbreviations and ticker symbols before synthesis (`NVDA` $\to$ *"Nvidia"*, `MSFT` $\to$ *"Microsoft"*, `TSMC / TSM` $\to$ *"T S M C"*, `ASML` $\to$ *"A S M L"*, `AVGO` $\to$ *"Broadcom"*, `PLTR` $\to$ *"Palantir"*, `BLK` $\to$ *"BlackRock"*, `COIN` $\to$ *"Coinbase"*, `CIDv1` $\to$ *"C I D version 1"*, `dag-json` $\to$ *"dag JSON"*, `EUV` $\to$ *"E U V"*, `AQ` $\to$ *"A Q"*, `bps` $\to$ *"basis points"*) and inserts natural micro-pauses at clause boundaries so the voice never rushes or spells out acronyms awkwardly.
|
||||
2. **Broadcast Audio Mastering (`master_wav_broadcast_warmth()`):** Applies a fast vectorised pure-Python post-processing pass on each generated `.wav` file:
|
||||
- Removes DC offset,
|
||||
- Applies a gentle 1-pole low-pass warmth filter (`f_c = 5.4 kHz`) to tame harsh high-frequency sibilance/buzz,
|
||||
- Applies soft-knee broadcast normalization (`-1.5 dBFS` target peak) and `15 ms` cosine fade-in/fade-out envelopes so scene transitions never click or pop.
|
||||
- **Strategy `2B` (Domain Pronunciation Lexicon Only, Without WAV DSP Mastering — Partial Candidate):**
|
||||
- Expands ticker/acronym pronunciations in text without post-processing the `.wav` audio samples.
|
||||
- **Strategy `2C` (Raw Unfiltered Synthesizer Output — Status Quo):**
|
||||
- Leaves text and `.wav` samples unprocessed.
|
||||
|
||||
---
|
||||
|
||||
### Audit Point 3: Client-Side Playback Rate & WebAudio Warmth EQ Filter (`site/quant/quant-tutorials.js`)
|
||||
|
||||
- **Strategy `3A` (Client-Side `playbackRate` Pacing Control `[1.0x | 1.15x]` + Subtle WebAudio Biquad Warmth Filter on `<audio id="tutVoiceAudio">` — Recommended Candidate):**
|
||||
- **What Changes in `site/quant/quant-tutorials.js`:**
|
||||
1. Routes `<audio id="tutVoiceAudio">` (when running over `http://` / `https://`) through a lightweight WebAudio `BiquadFilterNode` (`lowshelf` `+2.5 dB` at `220 Hz` for vocal body + `peaking` `-3.0 dB` at `4,800 Hz` to remove nasal formant harshness) so even basic synthesized voices sound warm and broadcast-balanced in the browser.
|
||||
2. Lowers the initial scene chime gain by `-50%` (`0.025 -> 0.012`) when `Voice: ON` is active so the chime never masks the opening words (`"Scene X.Y..."`) of the spoken narration.
|
||||
- **Strategy `3B` (Lower Scene Chime Gain Only When `Voice: ON` Is Active — Minimal Candidate):**
|
||||
- Reduces chime volume so it doesn't compete with the opening words, without adding a WebAudio `BiquadFilterNode` EQ.
|
||||
- **Strategy `3C` (Status Quo Client Audio Playback — Deferred):**
|
||||
- Leaves client playback unchanged.
|
||||
|
||||
---
|
||||
|
||||
## 4. Summary Matrix of Audit Points `1–3` for Stepwise Review (`Rule C.3`)
|
||||
|
||||
| Audit Point | Target Subsystem | Strategy `A` (Highest Voice Quality & Fastest Deploy — Recommended) | Strategy `B` (Lightweight Alternative) | Strategy `C` (Minimal / Status Quo) |
|
||||
| :--- | :--- | :--- | :--- | :--- |
|
||||
| **Point 1** | **Synthesis Engine & Deploy Speed** (`quant_voice.py` & `sync-vps-repos.sh`) | **`1A`:** Per-clip SHA-256 incremental cache (`0ms` warm) + parallel `flite -voice kal16` diphone pass (`1.22s` cold) + non-blocking background upgrade to `flite -voice slt` statistical voice (`0ms` deploy wait) | **`1B`:** Parallel `flite -voice kal16` diphone voice + per-clip SHA-256 cache only (`1.22s` cold, no background `slt` pass) | **`1C`:** Parallel `espeak-ng -v en-us+klatt4` (`2.68s` cold) |
|
||||
| **Point 2** | **Pronunciation Lexicon & WAV Mastering** (`quant_voice.py`) | **`2A`:** Domain acronym/ticker pronunciation lexicon (`NVDA -> Nvidia`, `CIDv1 -> C I D version 1`) + pure-Python `5.4 kHz` warmth filter, `-1.5 dBFS` normalization & cosine fade-in/out | **`2B`:** Domain pronunciation lexicon only (no WAV DSP filtering) | **`2C`:** Raw synthesizer output |
|
||||
| **Point 3** | **Client WebAudio EQ & Chime Ducking** (`site/quant/quant-tutorials.js`) | **`3A`:** WebAudio `BiquadFilterNode` vocal warmth EQ (`+2.5 dB` @ `220 Hz`, `-3 dB` @ `4.8 kHz`) + `-50%` chime ducking during spoken narration | **`3B`:** `-50%` chime ducking only | **`3C`:** Status quo |
|
||||
Binary file not shown.
Reference in new issue
Block a user