`model.hps.data.spk2id` is a MeloTTS `HParams` instance, not a dict. It exposes `__contains__` and `__getitem__` but not `.get()`, so the previous lookup blew up at lifespan startup with `AttributeError: 'HParams' object has no attribute 'get'`. Switch to `spk["KR"] if "KR" in spk else next(iter(spk.values()))`.
3.2 KiB
3.2 KiB