chore(deps): move gradio and webdataset out of the core install (#2603)

gradio is imported only by the omnivoice-demo CLI, so it moves to the
existing ui extra; webdataset is imported only by OmniVoice training and
data preparation, so it moves to a new train extra. The default install
drops gradio, groovy, hf-gradio, orjson, safehttpx, semantic-version,
tomlkit, brotli, webdataset and braceexpand (about 81 MB).

gradio_client (imported by the SoniTranslate service) and audioop-lts
(pydub on Python 3.13+) used to arrive through gradio and are now
declared directly. omnivoice-demo exits with the install command when
gradio is missing; the training docs name the train extra.
This commit is contained in:
debpalash committed 2026-11-12 01:00:40 +05:30
1 parent 60c3a4a138
commit 8f3e8d87b4
7 files changed
+43 -8

No files matched your search

+2
View File
@@ -2,6 +2,8 @@
VoiceStudio trains on a custom WebDataset format where audio data is packed into **tar shards** with paired **JSONL metadata** files. Each tar shard contains hundreds to thousands of samples (as `.npy` audio token arrays), drastically reducing disk I/O during training. The separated jsonl file allows for easier modification of metadata. This document explains the data format in detail and walks through the preparation pipeline.
The preparation scripts need the `train` extra: `uv sync --extra train`.
## 1. Input Format
+1
View File
@@ -4,6 +4,7 @@ The advanced pipeline adds **denoising** and **prompt noise augmentation** on to
## Prerequisites
- **Dependencies**: `uv sync --extra train` (WebDataset).
- **Denoising**: Sidon model checkpoints (`feature_extractor_cuda.pt`, `decoder_cuda.pt`) from https://huggingface.co/sarulab-speech/sidon-v0.1/tree/main.
- **Noise augmentation**: noise + RIR tar shards with `data.lst` manifests
+6
View File
@@ -1,5 +1,11 @@
# Training
Install the training dependencies first:
```bash
uv sync --extra train
```
## Training Config
All training is controlled by a JSON training config file and a JSON data config file.
+6
View File
@@ -9,6 +9,12 @@ training, fine-tuning, and evaluating VoiceStudio.
| Fine-tuning | [run_finetune.sh](run_finetune.sh) | Fine-tune from a pretrained checkpoint using your own JSONL data |
| Evaluation | [run_eval.sh](run_eval.sh) | Evaluate WER, speaker similarity, and UTMOS on standard test sets |
Training and data preparation need the `train` extra (WebDataset):
```bash
uv sync --extra train
```
---
## Training from Scratch (Emilia)
+7 -1
View File
@@ -20,6 +20,7 @@ Gradio demo for OmniVoice.
Supports voice cloning and voice design.
Usage:
uv sync --extra ui
omnivoice-demo --model /path/to/checkpoint --port 8000
"""
@@ -27,7 +28,12 @@ import argparse
import logging
from typing import Any, Dict
import gradio as gr
try:
import gradio as gr
except ImportError as exc: # gradio lives in the optional `ui` extra
raise SystemExit(
"omnivoice-demo needs Gradio. Install it with: uv sync --extra ui"
) from exc
import numpy as np
import torch
+12 -2
View File
@@ -40,9 +40,14 @@ dependencies = [
"transformers>=5.10.0",
"accelerate",
"pydub",
"gradio>=6.15.1",
# pydub imports the stdlib `audioop`, which Python 3.13 removed; gradio
# used to pull this backport in, so declare it now that gradio is in `ui`.
"audioop-lts ; python_version >= '3.13'",
# The SoniTranslate service imports gradio_client directly. It used to
# arrive through gradio; gradio itself is only for `omnivoice-demo` (`ui`).
"gradio_client",
# Used by accelerate's tensorboard tracker in omnivoice/training.
"tensorboardX",
"webdataset",
"numpy",
"soundfile",
# whisperx / faster-whisper import `pkg_resources` at runtime. setuptools
@@ -214,11 +219,16 @@ eval = [
"zhon", # Chinese punctuation
"unidecode", # Unicode normalization
]
# `omnivoice-demo` (omnivoice/cli/demo.py) is the only gradio importer.
ui = [
"gradio>=6.15.1",
"gradio_client",
"requests",
]
# OmniVoice training and data preparation (omnivoice/data, omnivoice/scripts).
train = [
"webdataset",
]
# Phase 3 Plan 03-01 — Supertonic-3 opt-in engine. CPU-only ONNX TTS,
# 31 languages, ~99M params, ~400 MB model on first use. Default
# `uv sync --no-dev` does NOT install this; users opt in with
Generated
+9 -5
View File
@@ -4043,6 +4043,7 @@ dependencies = [
{ name = "accelerate" },
{ name = "alembic" },
{ name = "argostranslate" },
{ name = "audioop-lts", marker = "python_full_version >= '3.13' or (extra == 'group-9-omnivoice-cpu' and extra == 'group-9-omnivoice-cuda')" },
{ name = "audioseal" },
{ name = "boto3" },
{ name = "cryptography" },
@@ -4052,7 +4053,7 @@ dependencies = [
{ name = "fastapi" },
{ name = "faster-whisper" },
{ name = "google-auth" },
{ name = "gradio" },
{ name = "gradio-client" },
{ name = "hf-xet" },
{ name = "httpx" },
{ name = "huggingface-hub" },
@@ -4097,7 +4098,6 @@ dependencies = [
{ name = "transformers" },
{ name = "truststore" },
{ name = "uvicorn" },
{ name = "webdataset" },
{ name = "websockets" },
{ name = "whisperx" },
{ name = "yt-dlp" },
@@ -4120,6 +4120,9 @@ pockettts = [
supertonic = [
{ name = "supertonic" },
]
train = [
{ name = "webdataset" },
]
ui = [
{ name = "gradio" },
{ name = "gradio-client" },
@@ -4152,6 +4155,7 @@ requires-dist = [
{ name = "accelerate" },
{ name = "alembic", specifier = ">=1.16" },
{ name = "argostranslate", specifier = ">=1.9.0" },
{ name = "audioop-lts", marker = "python_full_version >= '3.13'" },
{ name = "audioseal", specifier = ">=0.1.3" },
{ name = "boto3", specifier = ">=1.40" },
{ name = "cryptography", specifier = ">=41" },
@@ -4161,8 +4165,8 @@ requires-dist = [
{ name = "faster-whisper", specifier = ">=1.0.0" },
{ name = "funasr", marker = "extra == 'eval'" },
{ name = "google-auth", specifier = ">=2.29,<3" },
{ name = "gradio", specifier = ">=6.15.1" },
{ name = "gradio", marker = "extra == 'ui'", specifier = ">=6.15.1" },
{ name = "gradio-client" },
{ name = "gradio-client", marker = "extra == 'ui'" },
{ name = "hf-xet", specifier = ">=1.1" },
{ name = "httpx", specifier = ">=0.28.1" },
@@ -4211,14 +4215,14 @@ requires-dist = [
{ name = "truststore", specifier = ">=0.9" },
{ name = "unidecode", marker = "extra == 'eval'" },
{ name = "uvicorn" },
{ name = "webdataset" },
{ name = "webdataset", marker = "extra == 'train'" },
{ name = "websockets" },
{ name = "whisperx", specifier = ">=3.1.0" },
{ name = "yt-dlp", specifier = ">=2026.7.4" },
{ name = "zhconv", marker = "extra == 'eval'" },
{ name = "zhon", marker = "extra == 'eval'" },
]
provides-extras = ["eval", "ui", "supertonic", "pockettts"]
provides-extras = ["eval", "ui", "train", "supertonic", "pockettts"]
[package.metadata.requires-dev]
cpu = [