|
Download README.md from TYTYZhu/NeuroFlow-Voice-v5: direct link, hf CLI and curl.
- Browser
- Download file 10.1 kB
-
https://huggingface.co/TYTYZhu/NeuroFlow-Voice-v5/resolve/main/README.md
- Command line
-
hf download hf://TYTYZhu/NeuroFlow-Voice-v5/README.md
-
curl -L -o README.md https://huggingface.co/TYTYZhu/NeuroFlow-Voice-v5/resolve/main/README.md
10.1 kB
| license: mit | |
| language: | |
| - en | |
| tags: | |
| - brain-computer-interface | |
| - bci | |
| - neural-speech-decoding | |
| - speech-synthesis | |
| - meanflow | |
| - flow-matching | |
| - realtime-audio | |
| - streaming | |
| - onnx | |
| - onnxruntime-web | |
| - pytorch | |
| - neuroflow | |
| datasets: | |
| - openslr/libritts_r | |
| library_name: pytorch | |
| pipeline_tag: audio-to-audio | |
| # NeuroFlow-Voice v5 (`Plan A`): Real-Time Causal Brain-to-Speech Checkpoints | |
| [](https://huggingface.co/spaces/TYTYZhu/NeuroFlow-Voice-v5-Demo) | |
| [](https://huggingface.co/TYTYZhu/NeuroFlow-Voice-v6-v7) | |
| [](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 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. | |
| > | |
| > ππ **NEW β Next-Generation Companion Checkpoints (`v6 & v7`) Built Atop This `v5` Foundation**: | |
| > **[`TYTYZhu/NeuroFlow-Voice-v6-v7`](https://huggingface.co/TYTYZhu/NeuroFlow-Voice-v6-v7)** adds **`v6`** (*`81.25%` volitional question intonation, `41.4 ms / 46.54%` zero-LM Mode S1.5 RNN-T, `-10.04 pp` zero-prompt 2025 drift self-healing, `0.0 FWW/10m` Always-On*) and **`v7`** (*`-10.24 pp` `T15` inner-speech transfer, `59.14% TPR / 6.49% FPR / 0.0-bit` Mental Password Firewall, and `4`-patient `T17` Complete LIS `p=0.001` scaling law*). | |
| > | |
| > π§ **Pre-rendered Full Evaluation Audio Showcase (`v5`, `v6`, `v7`)**: [NeuroFlow-Voice GitHub Pages](https://innvation1.github.io/NeuroFlow-Voice/#v6-audio-demo) Β· [v5 Section](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 | | |
| | :--- | :---: | :--- | :--- | | |
| | `checkpoints/v5_audio_prior_100h/v5_audio_prior_100h_bundle.pt` | `357 MB` | `LibriTTS-R` (`CC BY 4.0`) | **Subject-agnostic** 160-speaker (`80F+80M`) `hidden=512` `2-Step MeanFlow` + `OT-CFM` + Mel/Mimi scalers (zero clinical data) | | |
| | `checkpoints/v5_audio_prior_100h/mel_phoneme_judge.pt` | `4.9 MB` | `LibriTTS-R` (`CC BY 4.0`) | Frozen Mel-to-phoneme acoustic intelligibility head | | |
| | `checkpoints/v5_audio_prior_100h/v5_prosody_predictor_100h.pt` | `1.9 MB` | `LibriTTS-R` (`CC BY 4.0`) | Base `100h` causal duration & prosody predictor | | |
| | `checkpoints/v5_b2voice25/v5_stage3a_s2_joint_bridge.pt` | `121 MB` | `LibriTTS-R` (`CC BY 4.0`) | **Subject-agnostic** Stage 3A cross-prosody distilled `Mode S2` `2-Step MeanFlow` + stateful `ProsodyPredictor` (Golden Female `#7059`, Male `#8297`) | | |
| | `checkpoints/v5_b2voice25/v5_trimodal_frontend_prospective_day195.pt` | `132 MB` | `T15` `B2V25` + `B2T25` (`CC0 1.0`) | **Anchor I** (`<= 2024.02.15`, 27 B2T + 37 B2V) `8L d=512` tri-modal causal frontend | | |
| | `checkpoints/v5_b2voice25/v5_causal_word_lm_prospective_day195.pt` | `25 MB` | `T15` (`CC0 1.0`) | **Anchor I** zero-leakage 3-layer streaming `CausalWordLM` | | |
| | `checkpoints/v5_b2voice25/v5_stage3b_s1_bridge_prospective_day195.pt` | `372 MB` | `T15` + `LibriTTS-R` | **Anchor I** Stage 3B `Mode S1-Dense` bounded-residual Gated-LoRA bridge | | |
| | `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 | | |
| --- | |
| ## Benchmark Summary (`noise_scale = 0.15`, NVIDIA L4 Train Β· CPU ONNX Eval) | |
| | Benchmark / Metric | `v4` Baseline | **v5 Anchor I** (`<= 2024.02.15`) | **v5 Anchor II** (`<= 2025.01.10`) | | |
| | :--- | :---: | :---: | :---: | | |
| | **Stage 1 `B2V25` Test Raw `PER`** | `14.27%` | **`9.82%`** | **`9.71%`** | | |
| | **Stage 1 `pitch_r` / `voicing_r`** | `0.716 / 0.812` | **`0.728 / 0.818`** | **`0.729 / 0.815`** | | |
| | **Held-Out `t15_day195` (`0-shot -> 25 trials, 13 s`)** | `15.62% -> 14.07%` | **`10.01% -> 8.51%`** | `9.33% -> 8.73%` *(non-causal ref)* | | |
| | **`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) | | |
| Full technical whitepapers: | |
| - `v5`: [`05_V5_PlanA_DualCorpus_2StepMeanFlow_Report.md`](https://github.com/INNVATION1/NeuroFlow-Voice/blob/main/05_V5_PlanA_DualCorpus_2StepMeanFlow_Report.md) | |
| - `v6`: [`07_V6_Expressive_And_SelfHeal_Report.md`](https://github.com/INNVATION1/NeuroFlow-Voice/blob/main/07_V6_Expressive_And_SelfHeal_Report.md) | |
| - `v7`: [`08_V7_InnerSpeech_And_Privacy_Report.md`](https://github.com/INNVATION1/NeuroFlow-Voice/blob/main/08_V7_InnerSpeech_And_Privacy_Report.md) | |
| --- | |
| ## Quick Start with `NeuroFlow-Voice` | |
| ```bash | |
| git clone https://github.com/INNVATION1/NeuroFlow-Voice.git | |
| cd NeuroFlow-Voice | |
| uv venv --python 3.12 .venv | |
| uv pip install --python .venv/bin/python -e ".[dev]" | |
| # 1. Pull only the subject-agnostic 100h studio voice foundation (~485 MB) | |
| # OR full Anchor I / Anchor II neural + acoustic checkpoints: | |
| .venv/bin/python scripts/download_v5_pretrained_weights.py --anchor prospective_day195 | |
| # 2. Download upstream third-party codecs (Vocos 24kHz, Wav2Vec2, Whisper) | |
| .venv/bin/python scripts/download_pretrained_codecs.py | |
| # 3. Run CPU ONNX + Dual-ASR evaluation immediately (auto-reuses downloaded checkpoints) | |
| .venv/bin/python scripts/run_v5_plan_a.py --anchor prospective_day195 --stage neural_and_eval | |
| ``` | |
| --- | |
| ## Licensing, Attribution & Research Ethics | |
| - **Code & Model Weights**: Released under the **MIT License** for open scientific research. | |
| - **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. | |