Update fastspeech2.py

pull/1243/head
TianYuan 4 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 Tensor
Output sequence of features (L, odim). 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( normalized_mel, d_outs, p_outs, e_outs = self.acoustic_model.inference(
text, text,
durations=None, durations=None,

Loading…
Cancel
Save