From 39ba32fafb6fc80311ab3f4f6998e52f6583c12e Mon Sep 17 00:00:00 2001 From: Color_yr <402067010@qq.com> Date: Tue, 16 Jan 2024 20:11:24 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=96=87=E4=BB=B6=E7=BC=96?= =?UTF-8?q?=E7=A0=81=E8=AF=BB=E5=8F=96=20(#3606)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixed #3605 --- paddlespeech/server/engine/tts/online/onnx/tts_engine.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paddlespeech/server/engine/tts/online/onnx/tts_engine.py b/paddlespeech/server/engine/tts/online/onnx/tts_engine.py index 9dd31a08..14204dde 100644 --- a/paddlespeech/server/engine/tts/online/onnx/tts_engine.py +++ b/paddlespeech/server/engine/tts/online/onnx/tts_engine.py @@ -154,7 +154,7 @@ class TTSServerExecutor(TTSExecutor): self.voc_sess = get_sess(self.voc_ckpt, voc_sess_conf) logger.debug("Create voc sess successfully.") - with open(self.phones_dict, "r") as f: + with open(self.phones_dict, "r", encoding='utf-8') as f: phn_id = [line.strip().split() for line in f.readlines()] self.vocab_size = len(phn_id) logger.debug(f"vocab_size: {self.vocab_size}")