feat(vllm): add TTS audio generation endpoint via vLLM Omni#7661
Draft
hatemfaheem wants to merge 1 commit intoai-dynamo:mainfrom
Draft
feat(vllm): add TTS audio generation endpoint via vLLM Omni#7661hatemfaheem wants to merge 1 commit intoai-dynamo:mainfrom
hatemfaheem wants to merge 1 commit intoai-dynamo:mainfrom
Conversation
Contributor
|
👋 Hi hatemfaheem! Thank you for contributing to ai-dynamo/dynamo. Just a reminder: The 🚀 |
Add POST /v1/audio/speech endpoint supporting text-to-speech with vLLM Omni, following the OpenAI audio API convention. Includes Rust protocol types, stream aggregation, model discovery for audio-capable workers, and a Python handler that builds TTS engine inputs with prompt length estimation and WAV encoding. Signed-off-by: Hatem Elseidy <[email protected]>
423875d to
54b707a
Compare
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.
DEP: ai-dynamo/enhancements#78
Overview:
Add a Text-to-Speech (TTS) audio generation endpoint (
POST /v1/audio/speech) to Dynamo, powered by vLLM Omni. The endpoint accepts text input and returns a complete WAV or PCM audio file, following the same architectural patterns already established by the image and video generation modalities. This proposal covers the first working version (V1) that delivers complete audio responses, while laying the groundwork for future streaming and additional codecs.Example
Request
Output: speech.wav
Details
Where should the reviewer start?
Most of the files follow images and videos setup. Audio/vllm specific logic is in this file:
components/src/dynamo/vllm/omni/omni_handler.pyRelated Issues: (use one of the action keywords Closes / Fixes / Resolves / Relates to)
To fix/improve (self review)
instructionsout of nvnext to main API to match OpenAI definition.