diff --git a/paddlespeech/cli/tts/infer.py b/paddlespeech/cli/tts/infer.py index f1f4daaac2cdbbe2aa89d29fd8e1c346f2227d8d..dfd6a42fe678b4a3219ee50d7670a17bcbceb687 100644 --- a/paddlespeech/cli/tts/infer.py +++ b/paddlespeech/cli/tts/infer.py @@ -431,7 +431,7 @@ class TTSExecutor(BaseExecutor): """ Init model and other resources from a specific path. """ - if hasattr(self, 'am') and hasattr(self, 'voc'): + if hasattr(self, 'am_inference') and hasattr(self, 'voc_inference'): logger.info('Models had been initialized.') return # am