Skip to content

feat(fishaudio): enable quality-guard on all TTS requests - #2237

Open
rosetta-livekit-bot[bot] wants to merge 1 commit into
mainfrom
bolted-blends-darn
Open

feat(fishaudio): enable quality-guard on all TTS requests#2237
rosetta-livekit-bot[bot] wants to merge 1 commit into
mainfrom
bolted-blends-darn

Conversation

@rosetta-livekit-bot

@rosetta-livekit-bot rosetta-livekit-bot Bot commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

Ports livekit/agents#6734.

Adds Fish Audio quality guard to the shared TTS request payload, enabling the server-side reliability feature for both HTTP and WebSocket synthesis without exposing a configuration option.

Source diff coverage
  • livekit-plugins/livekit-plugins-fishaudio/livekit/plugins/fishaudio/tts.py: Adapted to plugins/fishaudio/src/tts.ts. Added features: ['quality-guard'] to the shared TypeScript request builder used by /v1/tts and /v1/tts/live.
  • tests/test_plugin_fishaudio_tts.py: Adapted to plugins/fishaudio/src/tts.test.ts. Ported the quality-guard assertion through the target repository's existing public-path captureStartRequest harness because buildTtsRequest is module-private.

Verification

  • pnpm build
  • pnpm lint
  • pnpm format:check
  • pnpm test plugins/fishaudio -t "always enables quality guard"
  • pnpm test plugins/fishaudio: 25 passed, 1 skipped, 1 unrelated existing failure at plugins/fishaudio/src/tts.test.ts:739 (marks the terminal frame final before ending the stream expects the final frame flag to be true). The failure reproduces consistently and is unrelated to request payload construction.

Ported from livekit/agents#6734

Original PR description

Adds features: ["quality-guard"] to every Fish Audio TTS request body, on both the HTTP (/v1/tts) and WebSocket (/v1/tts/live) paths.

Quality guard is a server-side reliability feature that increases the stability of generations by catching errors and automatically retrying — built for our enterprise users. It has no drawback, so it's enabled always by default rather than exposed as an option.

  • Verified live against both endpoints: the field is accepted and synthesis is unaffected.
  • Unit test pins the flag on every request.

@rosetta-livekit-bot
rosetta-livekit-bot Bot requested a review from a team as a code owner August 7, 2026 00:00
@changeset-bot

changeset-bot Bot commented Aug 7, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 0149e78

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 39 packages
Name Type
@livekit/agents-plugin-fishaudio Patch
@livekit/agents Patch
@livekit/agents-plugin-anam Patch
@livekit/agents-plugin-anthropic Patch
@livekit/agents-plugin-assemblyai Patch
@livekit/agents-plugin-azure Patch
@livekit/agents-plugin-baseten Patch
@livekit/agents-plugin-bey Patch
@livekit/agents-plugin-cartesia Patch
@livekit/agents-plugin-cerebras Patch
@livekit/agents-plugin-deepgram Patch
@livekit/agents-plugin-did Patch
@livekit/agents-plugin-elevenlabs Patch
@livekit/agents-plugin-google Patch
@livekit/agents-plugin-hedra Patch
@livekit/agents-plugin-hume Patch
@livekit/agents-plugin-inworld Patch
@livekit/agents-plugin-krisp Patch
@livekit/agents-plugin-lemonslice Patch
@livekit/agents-plugin-liveavatar Patch
@livekit/agents-plugin-livekit Patch
@livekit/agents-plugin-minimax Patch
@livekit/agents-plugin-mistral Patch
@livekit/agents-plugin-mistralai Patch
@livekit/agents-plugin-neuphonic Patch
@livekit/agents-plugin-openai Patch
@livekit/agents-plugin-perplexity Patch
@livekit/agents-plugin-phonic Patch
@livekit/agents-plugin-protoface Patch
@livekit/agents-plugin-resemble Patch
@livekit/agents-plugin-rime Patch
@livekit/agents-plugin-runway Patch
@livekit/agents-plugin-sarvam Patch
@livekit/agents-plugin-silero Patch
@livekit/agents-plugin-soniox Patch
@livekit/agents-plugin-tavus Patch
@livekit/agents-plugin-trugen Patch
@livekit/agents-plugin-xai Patch
@livekit/agents-plugins-test Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@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: No Issues Found

Devin Review analyzed this PR and found no potential bugs to report.

View in Devin Review to see 1 additional finding.

Open in Devin Review

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.

0 participants