multi-spk tts static model (#2779)

* updata readme, test=doc

* update yaml and readme, test=tts

* fix batch_size, test=tts

* update readme, test=doc

* chmod, test=tts

* add multi-spk tts static model infer on server, test=tts
pull/2784/head
liangym 2 years ago committed by GitHub
parent 1e8394202c
commit 96d76c83ad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -247,11 +247,13 @@ class TTSServerExecutor(TTSExecutor):
else:
# multi speaker do not have static model
if am_dataset in {"aishell3", "vctk"}:
pass
am_result = run_model(
self.am_predictor,
[part_phone_ids.numpy(), np.array([spk_id])])
else:
am_result = run_model(self.am_predictor,
[part_phone_ids.numpy()])
mel = am_result[0]
mel = am_result[0]
self.am_time += (time.time() - am_st)
# voc

Loading…
Cancel
Save