Skip to content

fix(gradium): preserve no-break spaces in streamed amounts - #8903

Open
Twiink wants to merge 1 commit into
livekit:mainfrom
Twiink:fix/gradium-native-nonbreaking-spaces
Open

Twiink wants to merge 1 commit into
livekit:mainfrom
Twiink:fix/gradium-native-nonbreaking-spaces

Conversation

@Twiink

@Twiink Twiink commented Dec 2, 2026

Copy link
Copy Markdown

The native Gradium plugin splits a grouped amount such as 1 234,56 € into separate WebSocket text packets and replaces its no-break spacing with ASCII spaces. This also occurs when an input chunk ends at the narrow no-break space.

Keep no-break spaces inside words in the default tokenizer and send the original slices. A supplied tokenizer still controls the stream. LiveKit Inference has a corresponding change in #8862 and the native plugin uses its own WebSocket path.

Validation

  • The grouped-amount regression fails on main and passes with the change. It exercises TTS.stream() and verifies the packets at the Gradium WebSocket boundary. The ordinary two-word control also passes.
  • 165 Gradium TTS, STT, and markup tokenizer tests passed. Ruff lint and format checks passed. These tests use a scripted WebSocket.

AI contribution disclosed. Codex reproduced, implemented, and verified the fix at the account owner's request.

@Twiink
Twiink requested a review from a team as a code owner December 2, 2026 09:10
@CLAassistant

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@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 bugs or issues to report.

Devin Review

This branch has not been deployed

No deployments
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