From ca12a83d5a8a228e7bf04b0928a30cc61df870a0 Mon Sep 17 00:00:00 2001 From: TianYuan Date: Mon, 13 Dec 2021 11:36:28 +0000 Subject: [PATCH] update voc name --- paddlespeech/cli/tts/infer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paddlespeech/cli/tts/infer.py b/paddlespeech/cli/tts/infer.py index 771b7d6d..2684e9ed 100644 --- a/paddlespeech/cli/tts/infer.py +++ b/paddlespeech/cli/tts/infer.py @@ -465,7 +465,7 @@ class TTSExecutor(BaseExecutor): # vocoder # model: {model_name}_{dataset} - voc_name = '_'.join(voc.split('_')[:-1]) + voc_name = voc[:voc.rindex('_')] voc_class = dynamic_import(voc_name, model_alias) voc_inference_class = dynamic_import(voc_name + '_inference', model_alias)