Repository navigation
feat(omni): add Nemotron Audex speech synthesis to /v1/audio/speech #12788
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 20 commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
2d4504b
feat(omni): add Nemotron Audex speech synthesis to /v1/audio/speech
tthakkal ebe2c0f
Merge branch 'main' into vllm-omni-audex
tthakkal aeef473
Merge branch 'main' into vllm-omni-audex
tthakkal 235292e
updated read me and scripts
tthakkal a2e6457
Merge branch 'main' into vllm-omni-audex
tthakkal 28bb7c5
refactor(omni): scope Audex waveform buffering and address PR review
tthakkal 85ceef9
fix(omni): address review on Audex audio support
tthakkal 7b1c20e
fix(omni): address review on Audex audio support
tthakkal f723c80
Merge branch 'main' into vllm-omni-audex
tthakkal 134c22b
Merge branch 'main' into vllm-omni-audex
tthakkal c056aa5
Merge branch 'main' into vllm-omni-audex
tthakkal c5c4daf
test(omni): rewrite Audex audio tests against AudioAggregateState
tthakkal 49b7f20
Merge branch 'main' into vllm-omni-audex
tthakkal 3b5728f
Merge branch 'main' into vllm-omni-audex
tthakkal 2240190
Merge branch 'main' into vllm-omni-audex
tthakkal d175088
Merge branch 'main' into vllm-omni-audex
tthakkal c89e114
follow the resolved output kind when aggregating omni audio
tthakkal b26a1ea
Merge branch 'main' into vllm-omni-audex
tthakkal 6a02854
refactor(omni): address review feedback on Audex cfg_scale plumbing
tthakkal fcf60fa
Merge branch 'main' into vllm-omni-audex
tthakkal 3f1ba5f
Merge branch 'main' into vllm-omni-audex
tthakkal File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,44 @@ | ||
| # SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. | ||
| # SPDX-License-Identifier: Apache-2.0 | ||
|
|
||
| """The engine-input contract shared by every request-building path. | ||
|
|
||
| Lives in its own module, not in ``omni_handler``, so the per-modality builders | ||
| (``audio_handler``, and the model-specific adapters behind them) can annotate | ||
| what they return without importing the handler that consumes it. | ||
| """ | ||
|
|
||
| from dataclasses import dataclass | ||
| from typing import Any, Dict, Union | ||
|
|
||
| from vllm.lora.request import LoRARequest | ||
| from vllm_omni.inputs.data import OmniTextPrompt | ||
|
|
||
| from dynamo.common.utils.output_modalities import RequestType | ||
|
|
||
|
|
||
| @dataclass | ||
| class EngineInputs: | ||
| """Parsed engine inputs ready for AsyncOmni.generate(). | ||
|
|
||
| Attributes: | ||
| prompt: OmniTextPrompt dict for the engine. | ||
| sampling_params_list: Per-stage sampling parameters, or None for defaults. | ||
| request_type: The resolved request type (may differ from the initial parse | ||
| when a chat completion request carries video params). | ||
| fps: Frames per second, only meaningful for video requests. | ||
| response_format: Desired response format (e.g. "url" or "b64_json" for | ||
| image requests). None means use the default for the request type. | ||
| output_format: The output format to use for the response. | ||
| None means use the default for the request type. | ||
| """ | ||
|
|
||
| prompt: Union[OmniTextPrompt, Dict[str, Any]] | ||
| sampling_params_list: list | None = None | ||
| request_type: RequestType = RequestType.CHAT_COMPLETION | ||
| fps: int = 0 | ||
| speed: float = 1.0 | ||
| response_format: str | None = None | ||
| output_format: str | None = None | ||
| lora_request: LoRARequest | None = None | ||
| stream_audio: bool = False |
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.