This commit is contained in:
yumoqing 2024-08-06 15:11:07 +08:00
parent 288900d128
commit 8beb2dca7a
2 changed files with 4 additions and 2 deletions

View File

@ -15,7 +15,9 @@ __version__ = '0.0.1'
class TTS: class TTS:
def __init__(self): def __init__(self):
self.engine = ChatTTS.Chat() self.engine = ChatTTS.Chat()
self.engine.load(compile=True) self.engine.load(source='custom',
custom_path=get_definition(custom_path='chattts_model_path',
compile=True)
def _generate(request, **kw): def _generate(request, **kw):
params_kw = kw.get('params_kw') params_kw = kw.get('params_kw')

View File

@ -5,7 +5,7 @@
"logfile":"$[workdir]$/logs/tts.log" "logfile":"$[workdir]$/logs/tts.log"
}, },
"definitions":{ "definitions":{
"whisper_model":"/d/ymq/osc/models/whisper/large-v3.pt" "chattts_model_path":"/d/ymq/osc/models/ChaTTTS"
}, },
"filesroot":"$[workdir]$/files", "filesroot":"$[workdir]$/files",
"website":{ "website":{