Skip to content

Commit

Permalink
multi-spk tts static model (#2779)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
lym0302 authored Dec 28, 2022
1 parent 1e83942 commit 96d76c8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions paddlespeech/server/engine/tts/paddleinference/tts_engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,11 +247,13 @@ def infer(self,
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
Expand Down

0 comments on commit 96d76c8

Please sign in to comment.