from __future__ import annotations import importlib __all__ = ["TTS", "TextPreprocessor", "text_segmentation_method", "t2s_scheduler"] def __getattr__(name: str): if name in __all__: return importlib.import_module(f"{__name__}.{name}") raise AttributeError(f"module {__name__!r} has no attribute {name!r}")