From 9d4afeac313d496f041eaaf5be6c77074cd9349f Mon Sep 17 00:00:00 2001 From: zhayujie Date: Thu, 7 Dec 2023 22:44:43 +0800 Subject: [PATCH] feat: speech support app_code bind --- voice/linkai/linkai_voice.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/voice/linkai/linkai_voice.py b/voice/linkai/linkai_voice.py index c42b804..074c9fd 100644 --- a/voice/linkai/linkai_voice.py +++ b/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: