mirror of
https://github.com/leon-ai/leon.git
synced 2024-11-27 16:16:48 +03:00
feat(python tcp server): warm up TTS model on start
This commit is contained in:
parent
528257664a
commit
beb208973f
@ -72,6 +72,11 @@ class TTS(nn.Module):
|
||||
|
||||
self.log(f"Time taken to load model: {toc - tic:0.4f} seconds")
|
||||
|
||||
self.log('Warming up model...')
|
||||
speaker_ids = self.hps.data.spk2id
|
||||
self.tts_to_file('This is a test.', speaker_ids['EN-Leon-V1'], quiet=True, format='wav')
|
||||
self.log('Model warmed up')
|
||||
|
||||
@staticmethod
|
||||
def audio_numpy_concat(segment_data_list, sr, speed=1.):
|
||||
audio_segments = []
|
||||
|
Loading…
Reference in New Issue
Block a user