mirror of
https://github.com/BoardWare-Genius/jarvis-models.git
synced 2025-12-13 16:53:24 +00:00
feat: melotts init time
This commit is contained in:
@ -26,9 +26,9 @@ class MeloTTS(Blackbox):
|
|||||||
device: str
|
device: str
|
||||||
language: str
|
language: str
|
||||||
speaker: str
|
speaker: str
|
||||||
|
|
||||||
@inject
|
@logging_time(logger=logger)
|
||||||
def __init__(self, melo_config: MeloConf) -> None:
|
def model_init(self, melo_config: MeloConf) -> None:
|
||||||
self.speed = melo_config.speed
|
self.speed = melo_config.speed
|
||||||
self.device = melo_config.device
|
self.device = melo_config.device
|
||||||
self.language = melo_config.language
|
self.language = melo_config.language
|
||||||
@ -45,6 +45,10 @@ class MeloTTS(Blackbox):
|
|||||||
self.url = melo_config.url
|
self.url = melo_config.url
|
||||||
logging.info('#### Initializing MeloTTS Service in ' + self.device + ' mode...')
|
logging.info('#### Initializing MeloTTS Service in ' + self.device + ' mode...')
|
||||||
|
|
||||||
|
@inject
|
||||||
|
def __init__(self, melo_config: MeloConf) -> None:
|
||||||
|
self.model_init(melo_config)
|
||||||
|
|
||||||
def __call__(self, *args, **kwargs):
|
def __call__(self, *args, **kwargs):
|
||||||
return self.processing(*args, **kwargs)
|
return self.processing(*args, **kwargs)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user