Skip to content

Support speech speed in server and TTS model interfaces - #616

Merged
0xShug0 merged 1 commit into
mainfrom
fix/611-kokoro-supertonic-speed
Sep 20, 2026
Merged

0xShug0 merged 1 commit into
mainfrom
fix/611-kokoro-supertonic-speed

Conversation

@0xShug0

@0xShug0 0xShug0 commented Sep 20, 2026

Copy link
Copy Markdown
Owner

Fixes #611

Summary

  • Route top-level speed and speaking_rate in /v1/audio/speech to models that support speed control.
  • Expose speed as Kokoro's canonical request option while retaining the existing voice-style and legacy alias paths.
  • Make Supertonic accept both option names, with speed listed as the primary public option.
  • Keep published Kokoro GGUFs usable when their embedded spec predates speed. No UI changes.

Validation

  • Debug CLI and server builds passed.
  • In server mode, speed 2 produced roughly half the duration of speed 1 for Kokoro and Supertonic.
  • For each model, speed=2 and speaking_rate=2 produced byte-identical WAVs.
  • A Supertonic request shaped like the current UI payload matched the top-level speed result.

@0xShug0
0xShug0 merged commit 9ba8841 into main Sep 20, 2026
9 checks passed
@0xShug0
0xShug0 deleted the fix/611-kokoro-supertonic-speed branch September 20, 2026 04:53
cunba-ai pushed a commit to cunba-ai/audio.cpp that referenced this pull request Sep 20, 2026
Clean merge of PR #36: speech speed across server and TTS models
(0xShug0#616). kokoro_tts declares a spec-level "speed" request option
(default 1.0, implemented in the misaki phoneme frontend); supertonic
accepts "speed" with "speaking_rate" as alias plus the StyleCondition
field; the server maps body speed/speaking_rate onto whichever the
model's contract declares. No fork files touched. CAPI note: this
fork's audiocpp_tts already forwards every JSON key into
TaskRequest.options (apply_options), so {"speed": 1.5} works for
kokoro/supertonic through the existing options_json passthrough — no
CAPI change needed. fork_regression 11/11, loader sync ok.

Generated-by: zcode
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.

Add "speed" parameter support to server

1 participant