Skip to content

fix(tts): include supported encodings in RuntimeError message - #6910

Merged
longcw merged 1 commit into
livekit:mainfrom
YusufKeremKezer:kerem/fix/tts-encoding-error-msg
Aug 20, 2026
Merged

fix(tts): include supported encodings in RuntimeError message#6910
longcw merged 1 commit into
livekit:mainfrom
YusufKeremKezer:kerem/fix/tts-encoding-error-msg

Conversation

@YusufKeremKezer

Copy link
Copy Markdown
Contributor

Description

This PR updates the RuntimeError message thrown when an unsupported audio encoding is provided to explicitly list the supported encoding types (PCM, LINEAR16, MP3, OGG_OPUS).

Why is this change needed?

Previously, when an invalid encoding was passed, developers had to check the source code or external documentation to find out which encodings were actually supported. This small QoL (Quality of Life) update improves Developer Experience (DX) by making the error message directly actionable.

@YusufKeremKezer
YusufKeremKezer requested a review from a team as a code owner August 19, 2026 15:36

@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.

Open in Devin Review

@longcw
longcw merged commit 9ab2041 into livekit:main Aug 20, 2026
16 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