Skip to content

Commit e539ae3

Browse files
author
chenzefeng.09
committed
fix: baidu voice init params type error
1 parent 4c5e885 commit e539ae3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

voice/baidu/baidu_voice.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@ def __init__(self):
4343
with open(config_path, "r") as fr:
4444
bconf = json.load(fr)
4545

46-
self.app_id = conf().get("baidu_app_id")
47-
self.api_key = conf().get("baidu_api_key")
48-
self.secret_key = conf().get("baidu_secret_key")
46+
self.app_id = str(conf().get("baidu_app_id"))
47+
self.api_key = str(conf().get("baidu_api_key"))
48+
self.secret_key = str(conf().get("baidu_secret_key"))
4949
self.dev_id = conf().get("baidu_dev_pid")
5050
self.lang = bconf["lang"]
5151
self.ctp = bconf["ctp"]

0 commit comments

Comments
 (0)