瀏覽代碼

Merge pull request #1238 from chenzefeng09/fix_baidu_voice_init

fix: baidu voice init params type error
master
Jianglang GitHub 1 年之前
父節點
當前提交
ebf8db0b37
沒有發現已知的金鑰在資料庫的簽署中 GPG Key ID: 4AEE18F83AFDEB23
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. +3
    -3
      voice/baidu/baidu_voice.py

+ 3
- 3
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"]


Loading…
取消
儲存