瀏覽代碼

feat: speech support app_code bind

master
zhayujie 11 月之前
父節點
當前提交
9d4afeac31
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. +2
    -1
      voice/linkai/linkai_voice.py

+ 2
- 1
voice/linkai/linkai_voice.py 查看文件

@@ -62,7 +62,8 @@ class LinkAIVoice(Voice):
data = {
"model": model,
"input": text,
"voice": conf().get("tts_voice_id")
"voice": conf().get("tts_voice_id"),
"app_code": conf().get("linkai_app_code")
}
res = requests.post(url, headers=headers, json=data, timeout=(5, 120))
if res.status_code == 200:


Loading…
取消
儲存