From e539ae3b69e661dfba9dbf6db827f6894e495f8d Mon Sep 17 00:00:00 2001 From: "chenzefeng.09" Date: Fri, 9 Jun 2023 18:54:58 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=20baidu=20voice=20init=20params=20?= =?UTF-8?q?type=20error?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- voice/baidu/baidu_voice.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/voice/baidu/baidu_voice.py b/voice/baidu/baidu_voice.py index 406157b..fbf53ce 100644 --- a/voice/baidu/baidu_voice.py +++ b/voice/baidu/baidu_voice.py @@ -43,9 +43,9 @@ class BaiduVoice(Voice): with open(config_path, "r") as fr: bconf = json.load(fr) - self.app_id = conf().get("baidu_app_id") - self.api_key = conf().get("baidu_api_key") - self.secret_key = conf().get("baidu_secret_key") + self.app_id = str(conf().get("baidu_app_id")) + self.api_key = str(conf().get("baidu_api_key")) + self.secret_key = str(conf().get("baidu_secret_key")) self.dev_id = conf().get("baidu_dev_pid") self.lang = bconf["lang"] self.ctp = bconf["ctp"]