Add live in-browser inference Space badge, onnx_web artifacts table, and verified WASM latency telemetry
Browse files10 unmodified lines1112131415164 unmodified lines21222324252627282930313233343536373839404142437 unmodified lines5152535455568 unmodified lines6566676869707128 unmodified lines10010110210310 unmodified lines- flow-matching- realtime-audio- streaming- pytorch- neuroflowdatasets:4 unmodified lines# NeuroFlow-Voice v5 (`Plan A`): Real-Time Causal Brain-to-Speech Checkpoints[](https://github.com/INNVATION1/NeuroFlow-Voice)[](https://innvation1.github.io/NeuroFlow-Voice/#v5-audio-demo)[](https://github.com/INNVATION1/BCI-Research)Official pretrained model weights for **[NeuroFlow-Voice v5 (`Plan A`)](https://github.com/INNVATION1/NeuroFlow-Voice)** β a strictly causal (`0.0 ms` future lookahead) dual-clock brain-to-speech synthesis architecture combining:1. **Subject-Agnostic 160-Speaker `2-Step MeanFlow` Studio Voice Foundation (`LibriTTS-R 100h`, `hidden=512`)** mapping `45D SAPPI` (Subject-Agnostic Phoneme & Prosody Interface) to `24 kHz` Vocos Mel spectra with native `NFE=2` (`0 -> 0.55 -> 1.0`) consonant-burst refinement and zero-retraining voice switching;2. **Strictly Causal Prospective Dual-Corpus `T15` Frontend (`B2V25 100 Hz` + `B2T25 50 Hz`)** with zero future leakage and `0%` prompt overlap across two chronological anchors (`prospective_day195` & `prospective_2025_drift`);3. **Stage 3A Cross-Prosody Distilled `Mode S2` Bridge** (stateful cross-word `CausalSAPPIProsodyPredictor` + 3-layer streaming prefix-trie `CausalWordLM`) and **Stage 3B Bounded-Residual Gated-LoRA `Mode S1-Dense` Bridge** with `0.0 ms`-lookahead `DysarthricRefractoryPacer`.> π§ **Listen to real unselected `T15` test-set brain-to-voice audio samples (`noise_scale = 0.15`)**: [NeuroFlow-Voice Live Demo](https://innvation1.github.io/NeuroFlow-Voice/#v5-audio-demo)---## Included Open-Source Checkpoints (~1.56 GB Total)All third-party pretrained codecs (`Vocos 24kHz`, `Whisper`, `Wav2Vec2`) are **not** re-distributed here; they are automatically pulled from their official upstream Hugging Face repositories by `scripts/download_pretrained_codecs.py`. Static CPU ONNX graphs (`StatefulONNXTriModalFrontend`, `StatefulONNXDenseMeanFlowV5`) auto-export locally from these `.pt` checkpoints in ~10 seconds.| Path in Repo | Size | Derived Data & License | Role || :--- | :---: | :--- | :--- |7 unmodified lines| `checkpoints/v5_b2voice25/v5_trimodal_frontend_prospective_2025_drift.pt` | `136 MB` | `T15` `B2V25` + `B2T25` (`CC0 1.0`) | **Anchor II** (`<= 2025.01.10`, 40 B2T + 37 B2V) `8L d=512` tri-modal causal frontend || `checkpoints/v5_b2voice25/v5_causal_word_lm_prospective_2025_drift.pt` | `26 MB` | `T15` (`CC0 1.0`) | **Anchor II** zero-leakage 3-layer streaming `CausalWordLM` || `checkpoints/v5_b2voice25/v5_stage3b_s1_bridge_prospective_2025_drift.pt` | `375 MB` | `T15` + `LibriTTS-R` | **Anchor II** Stage 3B `Mode S1-Dense` bounded-residual Gated-LoRA bridge || `reports/*.json` | `21 KB` | Evaluation metrics | Complete Dual-ASR & drift evaluation JSON telemetry |---8 unmodified lines| **`Mode S2` Committed `Text WER`** | `8.18%` | **`6.03%`** | `6.54%` || **`Mode S2` Female `2-Step` `Whisper WER` (`#7059`)** | β | **`9.98%`** (`W2V 40.82%`) | **`12.80%`** (`W2V 38.81%`) || **`Mode S2` Male `2-Step` `Whisper WER` (`#8297`)** | β | **`15.40%`** *(1-Step: `16.88%`)* | **`14.71%`** *(1-Step: `19.43%`)* || **`Mode S1-Dense` CPU ONNX E2E Latency (`P50`)** | `32.17 ms` | **`33.95 ms`** (`step 13.95 ms`) | **`33.62 ms`** (`step 13.62 ms`) || **`Mode S1-Dense` Zero-LM `Whisper WER`** | `> 130%` *(no pacer)* | **`50.32%`** (`MCD 2.91 dB`) | **`40.68%`** (`MCD 2.87 dB`) || **5 Unseen 2025 Drift Sessions (`0-shot -> 50 trials, 16.6 s`)** | β | `72.06% -> 55.83%` PER | **`54.57% -> 45.87%` PER** (`-17.5 pts` 0-shot) |28 unmodified lines- **Upstream Dataset Attribution**:- Studio acoustic prior (`v5_audio_prior_100h_*`, `v5_stage3a_s2_joint_bridge.pt`) trained exclusively on **LibriTTS-R** (Koizumi et al., Interspeech 2023, `CC BY 4.0`).- Neural frontend & drift benchmarks trained on public de-identified Dryad datasets: **T15 Brain-to-Voice 2025** (Wairagkar et al., *Nature* 2025, `doi:10.5061/dryad.2280gb64f`, `CC0 1.0`) and **Brain-to-Text '25** (`doi:10.5061/dryad.dncjsxm85`, `CC0 1.0`).- **Privacy & Intended Use**: Checkpoints contain only learned neural parameters and vocabulary token indices β no raw clinical recordings, patient audio, or personally identifiable information. Intended strictly for academic BCI & assistive speech neuroprosthesis research; not a certified medical device.10 unmodified lines11121314151617184 unmodified lines2324252627282930313233343536373839404142434445464748497 unmodified lines575859606162638 unmodified lines727374757677787928 unmodified lines10810911011110 unmodified lines- flow-matching- realtime-audio- streaming- onnx- onnxruntime-web- pytorch- neuroflowdatasets:4 unmodified lines# NeuroFlow-Voice v5 (`Plan A`): Real-Time Causal Brain-to-Speech Checkpoints[](https://huggingface.co/spaces/TYTYZhu/NeuroFlow-Voice-v5-Demo)[](https://github.com/INNVATION1/NeuroFlow-Voice)[](https://innvation1.github.io/NeuroFlow-Voice/#v5-audio-demo)[](https://github.com/INNVATION1/BCI-Research)Official pretrained model weights and browser-ready `Q8 ONNX` artifacts for **[NeuroFlow-Voice v5 (`Plan A`)](https://github.com/INNVATION1/NeuroFlow-Voice)** β a strictly causal (`0.0 ms` future lookahead) dual-clock brain-to-speech synthesis architecture combining:1. **Subject-Agnostic 160-Speaker `2-Step MeanFlow` Studio Voice Foundation (`LibriTTS-R 100h`, `hidden=512`)** mapping `45D SAPPI` (Subject-Agnostic Phoneme & Prosody Interface) to `24 kHz` Vocos Mel spectra with native `NFE=2` (`0 -> 0.55 -> 1.0`) consonant-burst refinement and zero-retraining voice switching;2. **Strictly Causal Prospective Dual-Corpus `T15` Frontend (`B2V25 100 Hz` + `B2T25 50 Hz`)** with zero future leakage and `0%` prompt overlap across two chronological anchors (`prospective_day195` & `prospective_2025_drift`);3. **Stage 3A Cross-Prosody Distilled `Mode S2` Bridge** (stateful cross-word `CausalSAPPIProsodyPredictor` + 3-layer streaming prefix-trie `CausalWordLM`) and **Stage 3B Bounded-Residual Gated-LoRA `Mode S1-Dense` Bridge** with `0.0 ms`-lookahead `DysarthricRefractoryPacer`.> π§ **Try Live In-Browser Inference Right Now (Zero Server Cold-Start, ONNX Runtime Web WASM SIMD)**:> **[Launch NeuroFlow-Voice v5 Live Demo Space](https://huggingface.co/spaces/TYTYZhu/NeuroFlow-Voice-v5-Demo)** β decode real unseen `T15` intracortical trials (`17.3 ms/frame` 1-Step / `48.0 ms` WASM E2E!) or synthesize any English text across all 160 voices with live per-frame latency telemetry and spectrogram visualization.>> π§ **Pre-rendered Full Evaluation Audio Showcase (`noise_scale = 0.15`)**: [NeuroFlow-Voice GitHub Pages](https://innvation1.github.io/NeuroFlow-Voice/#v5-audio-demo)---## Included Open-Source Checkpoints (~1.56 GB `.pt` + ~128 MB `onnx_web/`)All third-party pretrained codecs (`Vocos 24kHz`, `Whisper`, `Wav2Vec2`) are **not** re-distributed in `checkpoints/`; they are automatically pulled from their official upstream Hugging Face repositories by `scripts/download_pretrained_codecs.py`. Browser-ready `Q8` quantized streaming graphs live under `onnx_web/` to power the zero-cold-start live Space.| Path in Repo | Size | Derived Data & License | Role || :--- | :---: | :--- | :--- |7 unmodified lines| `checkpoints/v5_b2voice25/v5_trimodal_frontend_prospective_2025_drift.pt` | `136 MB` | `T15` `B2V25` + `B2T25` (`CC0 1.0`) | **Anchor II** (`<= 2025.01.10`, 40 B2T + 37 B2V) `8L d=512` tri-modal causal frontend || `checkpoints/v5_b2voice25/v5_causal_word_lm_prospective_2025_drift.pt` | `26 MB` | `T15` (`CC0 1.0`) | **Anchor II** zero-leakage 3-layer streaming `CausalWordLM` || `checkpoints/v5_b2voice25/v5_stage3b_s1_bridge_prospective_2025_drift.pt` | `375 MB` | `T15` + `LibriTTS-R` | **Anchor II** Stage 3B `Mode S1-Dense` bounded-residual Gated-LoRA bridge || `onnx_web/*.onnx` & `onnx_web/demo_trials/` | `~128 MB` | Anchor I + `LibriTTS-R` + 5 CC0 test trials | Browser WASM SIMD graphs (`meanflow_step_q8.onnx` `54.4 MB` `MCD 0.031 dB`, Stage 3B `fe_*_q8.onnx`, `vocos_backbone_q8.onnx` `MCD 0.417 dB`, stateful `prosody_{dur,frm}.onnx`) powering the Live HF Space || `reports/*.json` | `21 KB` | Evaluation metrics | Complete Dual-ASR & drift evaluation JSON telemetry |---8 unmodified lines| **`Mode S2` Committed `Text WER`** | `8.18%` | **`6.03%`** | `6.54%` || **`Mode S2` Female `2-Step` `Whisper WER` (`#7059`)** | β | **`9.98%`** (`W2V 40.82%`) | **`12.80%`** (`W2V 38.81%`) || **`Mode S2` Male `2-Step` `Whisper WER` (`#8297`)** | β | **`15.40%`** *(1-Step: `16.88%`)* | **`14.71%`** *(1-Step: `19.43%`)* || **`Mode S1-Dense` Native CPU ONNX E2E (`P50`)** | `32.17 ms` | **`33.95 ms`** (`step 13.95 ms`) | **`33.62 ms`** (`step 13.62 ms`) || **`Mode S1-Dense` Browser WASM SIMD (`1-Step / 2-Step`)** | β | **`48.0 ms`** (`17.3 ms/f`) / **`55.0 ms`** (`24.3 ms/f`) | β || **`Mode S1-Dense` Zero-LM `Whisper WER`** | `> 130%` *(no pacer)* | **`50.32%`** (`MCD 2.91 dB`) | **`40.68%`** (`MCD 2.87 dB`) || **5 Unseen 2025 Drift Sessions (`0-shot -> 50 trials, 16.6 s`)** | β | `72.06% -> 55.83%` PER | **`54.57% -> 45.87%` PER** (`-17.5 pts` 0-shot) |28 unmodified lines- **Upstream Dataset Attribution**:- Studio acoustic prior (`v5_audio_prior_100h_*`, `v5_stage3a_s2_joint_bridge.pt`) trained exclusively on **LibriTTS-R** (Koizumi et al., Interspeech 2023, `CC BY 4.0`).- Neural frontend & drift benchmarks trained on public de-identified Dryad datasets: **T15 Brain-to-Voice 2025** (Wairagkar et al., *Nature* 2025, `doi:10.5061/dryad.2280gb64f`, `CC0 1.0`) and **Brain-to-Text '25** (`doi:10.5061/dryad.dncjsxm85`, `CC0 1.0`).- **Privacy & Intended Use**: Checkpoints contain only learned neural parameters and vocabulary token indices; the 5 browser demo feature vectors under `onnx_web/demo_trials/` are sliced strictly from the public CC0 Dryad `T15` test split (`doi:10.5061/dryad.2280gb64f`). Intended strictly for academic BCI & assistive speech neuroprosthesis research; not a certified medical device.
README.md+15-7