Skip to content

feat: add seed option to gradio demo#154

Open
fovndxtion wants to merge 1 commit into
k2-fsa:masterfrom
fovndxtion:feat/seed-option
Open

feat: add seed option to gradio demo#154
fovndxtion wants to merge 1 commit into
k2-fsa:masterfrom
fovndxtion:feat/seed-option

Conversation

@fovndxtion

Copy link
Copy Markdown

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 #107


image

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
@TheMasterOfDisasters

Copy link
Copy Markdown

@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.
@fovndxtion

Copy link
Copy Markdown
Author

@TheMasterOfDisasters You're welcome. Glad to hear it's useful for your fork.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants