feat: add seed option to gradio demo#154
Open
fovndxtion wants to merge 1 commit into
Open
Conversation
Allows users to set a fixed seed for reproducible audio generation. When the "Randomize Seed" checkbox is enabled, a random seed is generated and displayed in the UI. - Added seed number field and seed randomize checkbox to Generation Settings (optional) to both tabs (Voice Clone, Voice Design) - Add logic for generation random seed in _gen_core - Return actual seed to UI after generation Ref k2-fsa#107
|
@fovndxtion Thanks for this idea. We adapted seed controls into our OmniVoiceTTS runtime fork as well. Very useful for reproducible generation. |
TheMasterOfDisasters
added a commit
to hangry-labs/OmniVoiceTTS
that referenced
this pull request
May 14, 2026
Add Seed and Randomize Seed controls to the browser UI so users can recreate generated audio when needed. The used seed is written back to the UI after generation, and manual seed edits disable randomization. Also expose seed and randomize_seed in the HTTP API and return the used seed in X-OmniVoiceTTS-Seed. Inspired by upstream PR k2-fsa#154 by @fovndxtion.
Author
|
@TheMasterOfDisasters You're welcome. Glad to hear it's useful for your fork. |
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.
Allows users to set a fixed seed for reproducible audio generation. When the "Randomize Seed" checkbox is enabled, a random seed is generated and displayed in the UI.
Ref #107