Update Vertex AI Text to Speech doc to show use of audio#20255
Merged
Sameerlite merged 1 commit intomainfrom Feb 2, 2026
Merged
Update Vertex AI Text to Speech doc to show use of audio#20255Sameerlite merged 1 commit intomainfrom
Sameerlite merged 1 commit intomainfrom
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
Greptile OverviewGreptile SummaryThis PR updates the Vertex AI Text to Speech documentation to clarify that when using Gemini TTS models via LiteLLM Proxy, users must include Changes
ContextThis addresses issue #18178. The
The documentation change is consistent with LiteLLM's existing pattern for handling provider-specific parameters through the proxy, as documented in Confidence Score: 4/5
|
| Filename | Overview |
|---|---|
| docs/my-website/docs/providers/vertex_speech.md | Added allowed_openai_params requirement for audio parameters when using Gemini TTS via proxy |
Sequence Diagram
sequenceDiagram
participant User
participant OpenAI_SDK as OpenAI SDK Client
participant LiteLLM_Proxy as LiteLLM Proxy
participant Vertex_AI as Vertex AI Gemini TTS
User->>OpenAI_SDK: Create chat completion request
Note over User,OpenAI_SDK: messages, modalities=["audio"]<br/>audio={"voice": "Kore", "format": "pcm16"}
OpenAI_SDK->>LiteLLM_Proxy: POST /v1/chat/completions
Note over OpenAI_SDK,LiteLLM_Proxy: extra_body={"allowed_openai_params": ["audio", "modalities"]}
LiteLLM_Proxy->>LiteLLM_Proxy: Check allowed_openai_params
Note over LiteLLM_Proxy: Validates "audio" and "modalities"<br/>are in allowed list
LiteLLM_Proxy->>LiteLLM_Proxy: Transform audio params to speechConfig
Note over LiteLLM_Proxy: Maps OpenAI audio format<br/>to Vertex AI speechConfig
LiteLLM_Proxy->>Vertex_AI: Generate content with audio
Note over LiteLLM_Proxy,Vertex_AI: speechConfig={voiceConfig={prebuiltVoiceConfig={voiceName: "Kore"}}}<br/>responseModalities=["AUDIO"]
Vertex_AI-->>LiteLLM_Proxy: Audio response (pcm16)
LiteLLM_Proxy-->>OpenAI_SDK: OpenAI-format response
OpenAI_SDK-->>User: Audio content
1 task
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.
Relevant issues
Fixes #18178
Pre-Submission checklist
Please complete all items before asking a LiteLLM maintainer to review your PR
tests/litellm/directory, Adding at least 1 test is a hard requirement - see detailsmake test-unitCI (LiteLLM team)
Branch creation CI run
Link:
CI run for the last commit
Link:
Merge / cherry-pick CI run
Links:
Type
🆕 New Feature
🐛 Bug Fix
🧹 Refactoring
📖 Documentation
🚄 Infrastructure
✅ Test
Changes