docs: document OpenRouter TTS integration and response_format requirement - #1343
Merged
Classic298 merged 1 commit intoAug 7, 2026
Merged
Conversation
…ment Closes open-webui/open-webui#28143 Adds a dedicated section to the OpenAI TTS Integration guide covering: - Configuring OpenRouter as a TTS provider via the OpenAI-compatible engine - The AUDIO_TTS_OPENAI_PARAMS env var for docker-compose setups - Why response_format must be set to mp3 (OpenRouter defaults to pcm, which Open WebUI cannot play back, causing a 400 Bad Request)
Member
|
thanks! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Documents how to use OpenRouter as a Text-to-Speech provider through Open WebUI's OpenAI-compatible TTS engine, resolving the
400 Bad Requestreported in open-webui/open-webui#28143.Why
OpenRouter's
/audio/speechendpoint defaultsresponse_formattopcmwhen omitted, and Open WebUI's_tts_openaihandler (backend/open_webui/routers/audio.py) does not sendresponse_format. The result is raw PCM audio that Open WebUI cannot play back → HTTP 400.Changes
Adds a new "Using OpenRouter as a Text-to-Speech Provider" section to
openai-tts-integration.md:pcm)https://openrouter.ai/api/v1+{"response_format": "mp3"}in OpenAI ParamsAUDIO_TTS_OPENAI_PARAMS(verified againstconfig.pyL1589)mp3is playable in Open WebUI (pcmis for streaming pipelines)Testing
npx prettier --checkpasses on the modified fileaudio.tts.openai.paramsverified against thedevbranch sourceCloses #28143 (docs request)