File size: 533 Bytes
409d4fb | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | """LGTM text-to-speech. `LGTMTTS` = PyTorch backend, `LGTMOnnx` = ONNX Runtime backend (no torch needed)."""
def __getattr__(name): # lazy imports: the ONNX backend must not require torch
if name in ("LGTMTTS", "load_voice_style", "save_voice_style"):
from . import inference
return getattr(inference, name)
if name == "LGTM":
from .model import LGTM
return LGTM
if name == "LGTMOnnx":
from .onnx_inference import LGTMOnnx
return LGTMOnnx
raise AttributeError(name)
|