Skip to content

Commit

Permalink
feat: speech support app_code bind
Browse files Browse the repository at this point in the history
  • Loading branch information
zhayujie committed Dec 7, 2023
1 parent 14ae2f1 commit 9d4afea
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion voice/linkai/linkai_voice.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@ def textToVoice(self, text):
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:
Expand Down

0 comments on commit 9d4afea

Please sign in to comment.