Update fastspeech2.py

pull/1243/head
TianYuan 3 years ago committed by GitHub
parent 72986d059d
commit a232cd8b12
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -940,7 +940,8 @@ class StyleFastSpeech2Inference(FastSpeech2Inference):
Tensor
Output sequence of features (L, odim).
"""
spk_id = paddle.to_tensor(spk_id)
if spk_id:
spk_id = paddle.to_tensor(spk_id)
normalized_mel, d_outs, p_outs, e_outs = self.acoustic_model.inference(
text,
durations=None,

Loading…
Cancel
Save