Update tts_engine.py

Fix "TypeError: expected str, bytes or os.PathLike object, not list"
pull/3491/head
CHNtentes 2 years ago committed by GitHub
parent 17854a04d4
commit 6b37570d90
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -86,7 +86,7 @@ class TTSServerExecutor(TTSExecutor):
else: else:
self.am_ckpt = os.path.abspath(am_ckpt[0]) self.am_ckpt = os.path.abspath(am_ckpt[0])
self.phones_dict = os.path.abspath(phones_dict) self.phones_dict = os.path.abspath(phones_dict)
self.am_res_path = os.path.dirname(os.path.abspath(am_ckpt)) self.am_res_path = os.path.dirname(os.path.abspath(am_ckpt[0]))
# create am sess # create am sess
self.am_sess = get_sess(self.am_ckpt, am_sess_conf) self.am_sess = get_sess(self.am_ckpt, am_sess_conf)

Loading…
Cancel
Save