There was an error while loading. Please reload this page.
1 parent 1b8ca70 commit 39ba32fCopy full SHA for 39ba32f
paddlespeech/server/engine/tts/online/onnx/tts_engine.py
@@ -154,7 +154,7 @@ def _init_from_path(
154
self.voc_sess = get_sess(self.voc_ckpt, voc_sess_conf)
155
logger.debug("Create voc sess successfully.")
156
157
- with open(self.phones_dict, "r") as f:
+ with open(self.phones_dict, "r", encoding='utf-8') as f:
158
phn_id = [line.strip().split() for line in f.readlines()]
159
self.vocab_size = len(phn_id)
160
logger.debug(f"vocab_size: {self.vocab_size}")
0 commit comments