Skip to content

TTS synthesis + serve cleanup#15

Merged
TroyHernandez merged 1 commit into
mainfrom
merge-tts-cleanup
Jun 16, 2026
Merged

TTS synthesis + serve cleanup#15
TroyHernandez merged 1 commit into
mainfrom
merge-tts-cleanup

Conversation

@TroyHernandez

Copy link
Copy Markdown
Contributor

Squash of the reviewed tts-cleanup branch, applied over main's revert so the wav-mono fix is preserved.

Highlights: one-call chatterbox(load = TRUE), generate(output_path=), T3 text-token guard, unified normalize_tts_text() (default normalize_text = FALSE), tts_chunked() long-form layer with actual-token bucketing, generate_batch() split into T3/S3Gen stage helpers, and the base-R-socket serve() server. Reviewed commit-by-commit by corteza; full tinytest::test_package green (92/92). Version 0.1.0.9.

Squash of the tts-cleanup branch (reviewed commit-by-commit by corteza),
applied over main's revert so the wav-mono fix is preserved.

- chatterbox(load = TRUE): one-call construct + load; idempotent
  load_chatterbox()/load_chatterbox_turbo().
- generate(output_path=): optional WAV sink; tts_to_file() demoted to a
  thin wrapper.
- T3 input text-token guard; CFM sized from actual generated tokens.
- normalize_tts_text(caps=, punctuation=) single entry; normalize_text
  defaults FALSE (the caps mitigation patched a since-fixed bug).
- tts_chunked(): long-form layer - word-safe splitting, voice resolved
  once, T3 run first so batching/caps use actual speech-token lengths;
  size-one groups keep the traced CFM path.
- generate_batch() split into reusable T3 and S3Gen stage helpers.
- serve(): base-R-socket HTTP server, routes through tts_chunked(),
  forwards request knobs.

Version 0.1.0.9.
@TroyHernandez TroyHernandez merged commit 05000f2 into main Jun 16, 2026
4 checks passed
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