Skip to content

vllm_omni.diffusion.models.soulx_singer.modules.preprocess.stack

Lazy-loaded SoulX preprocess model tree.

logger module-attribute

logger = init_logger(__name__)

SoulXPreprocessStack

Bases: Module, SupportsComponentDiscovery

Unified nn.Module tree for SoulX-Singer audio preprocess.

device property

device: device

device_str instance-attribute

device_str = device

hop_size instance-attribute

hop_size = hop_size

target_sr instance-attribute

target_sr = target_sr

verbose instance-attribute

verbose = verbose

weights instance-attribute

weights = weights

ensure_lyric

ensure_lyric()

ensure_rmvpe

ensure_rmvpe()

ensure_rosvot

ensure_rosvot()

ensure_segmenter

ensure_segmenter()

ensure_vocal_sep

ensure_vocal_sep()

extract_f0

extract_f0(
    vocal, sample_rate: int, *, f0_path: str | None = None
) -> ndarray

Extract F0 on the mel grid; ndarray inputs are spooled to a temp wav.

extract_vocal

extract_vocal(
    audio: str | tuple[ndarray, int],
) -> tuple[ndarray, int]