Thanks to visit codestin.com
Credit goes to github.com

Skip to content

feat(fishaudio): add speed/volume prosody params and default to s2.1-pro#6159

Merged
tinalenguyen merged 1 commit into
livekit:mainfrom
cshape:cale/fishaudio-speed-volume
Jun 18, 2026
Merged

feat(fishaudio): add speed/volume prosody params and default to s2.1-pro#6159
tinalenguyen merged 1 commit into
livekit:mainfrom
cshape:cale/fishaudio-speed-volume

Conversation

@cshape

@cshape cshape commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

Summary

  • speed / volume: new fishaudio.TTS params (and on update_options) wired to Fish Audio's prosody request field. speed is a rate multiplier (1.0 = normal), volume is a dB offset (0 = natural). Both default to NOT_GIVENprosody stays null, so existing requests are byte-for-byte unchanged.
  • s2.1-pro: added to TTSModels and now the plugin default (was s2-pro). Markup/expressive tag injection is unaffected — the s2 provider-key check still matches s2.1-pro.

Test Plan

  • uv run pytest --plugin fishaudio — 7 tests (default model, model variants, prosody omitted by default, speed/volume/both, update_options plumbing).
  • ruff format + lint + mypy clean on touched files.

Expose `speed` and `volume` on `fishaudio.TTS` (and `update_options`), wired
into Fish Audio's `prosody` request field. Both default to NOT_GIVEN, so when
unset the request omits prosody and is byte-for-byte unchanged.

Add `s2.1-pro` to TTSModels and make it the default model.
@cshape cshape requested a review from a team as a code owner June 18, 2026 17:29

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Devin Review found 1 potential issue.

Open in Devin Review

@tinalenguyen tinalenguyen merged commit b64cb43 into livekit:main Jun 18, 2026
18 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.

2 participants