Skip to content

Commit

Permalink
Merge pull request zhayujie#1238 from chenzefeng09/fix_baidu_voice_init
Browse files Browse the repository at this point in the history
fix: baidu voice init params type error
  • Loading branch information
lanvent committed Jun 9, 2023
2 parents 4c5e885 + e539ae3 commit ebf8db0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions voice/baidu/baidu_voice.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ def __init__(self):
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"]
Expand Down

0 comments on commit ebf8db0

Please sign in to comment.