From b9a55262f1414977363ba6c380355dabbc766016 Mon Sep 17 00:00:00 2001 From: TianYuan Date: Thu, 30 Dec 2021 16:57:01 +0800 Subject: [PATCH] Update fastspeech2.py --- paddlespeech/t2s/models/fastspeech2/fastspeech2.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/paddlespeech/t2s/models/fastspeech2/fastspeech2.py b/paddlespeech/t2s/models/fastspeech2/fastspeech2.py index 295a2e4b..405ad957 100644 --- a/paddlespeech/t2s/models/fastspeech2/fastspeech2.py +++ b/paddlespeech/t2s/models/fastspeech2/fastspeech2.py @@ -940,8 +940,6 @@ class StyleFastSpeech2Inference(FastSpeech2Inference): Tensor Output sequence of features (L, odim). """ - 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,