Skip to content

Improve Kokoro, NeuTTS, and VoxCPM2 streaming - #865

Merged
0xShug0 merged 3 commits into
mainfrom
feature/streaming-improvement-3
Oct 10, 2026
Merged

0xShug0 merged 3 commits into
mainfrom
feature/streaming-improvement-3

Conversation

@0xShug0

@0xShug0 0xShug0 commented Oct 10, 2026 •

Copy link
Copy Markdown
Owner

Changes

  • Add text-chunk streaming to Kokoro and incremental AR-code decoding to NeuTTS.
  • Group VoxCPM2 AudioVAE windows with configurable grow/fixed policies.
  • Use the existing streaming session base across these models and KugelAudio.
  • Update specs, documentation, README labels, and canonical path cases. No shared framework or kernel changes.
  • Leave Supertonic unchanged from main; its proposed streaming changes were removed after A/B measurement.

Validation

  • CUDA long-request measurements reduced NeuTTS TTFA from 6.26 s to 193 ms. VoxCPM2 improved RTF by about 6%, with about 7 ms higher TTFA and unchanged measured peak VRAM.
  • Debug CPU and Vulkan streaming smoke tests covered the remaining four models, including same-session repeats. First outputs matched previously validated backend-specific audio.
  • CUDA offline A/B and streaming output checks completed. NeuTTS windowed decoding can differ from offline because its codec uses non-causal attention.
  • Additional CUDA tests used eight Open TTS CV3-Eval English cases, 31-234 characters. After two same-case warmups, NeuTTS aggregate RTF was 0.26585 before versus 0.27256 after, median TTFA 1876 versus 194 ms, and peak VRAM 2586 versus 2522 MiB. A mixed-length sequence measured RTF 0.26778 versus 0.26675, so the small throughput difference is workload-dependent.

NeuTTS streaming deltas use audio_output rather than separately named chunk files. Final merged WAV output remains available. Supertonic retains its existing output behavior.

@0xShug0

0xShug0 commented Oct 10, 2026 •

Copy link
Copy Markdown
Owner Author

Tested on an RTX 5090 with a Debug build and four CPU threads. Each model used a fresh server process. Requests ran sequentially: a 41-character warmup, an 853-character warmup, the same long request for measurement, then the original short request.

TTFA measures client-observed time to first audio. RTF is HTTP completion time divided by generated audio duration. Peak VRAM was sampled every 10 ms across the entire sequence, including loading.

Model / weights TTFA before → after Streaming RTF before → after Peak VRAM before → after
Kokoro BF16* 829 → 216 ms 0.01575 → 0.01717 3,334 → 3,334 MiB
KugelAudio BF16 250 → 253 ms 0.22730 → 0.22784 16,762 → 16,762 MiB
NeuTTS 2E original 6,257 → 193 ms 0.25928 → 0.25916 2,632 → 2,522 MiB
VoxCPM2 BF16 142 → 149 ms 0.13703 → 0.12845 6,756 → 6,756 MiB

Kokoro previously had no streaming path, so its baseline is offline. The other rows compare streaming before and after.

@0xShug0 0xShug0 changed the title Improve Kokoro, NeuTTS, Supertonic, and VoxCPM2 streaming Improve Kokoro, NeuTTS, and VoxCPM2 streaming Oct 10, 2026
@0xShug0
0xShug0 merged commit 86a51ca into main Oct 10, 2026
6 checks passed
@0xShug0
0xShug0 deleted the feature/streaming-improvement-3 branch October 10, 2026 23:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant