Explorar o código

feat: speech support app_code bind

zhayujie %!s(int64=2) %!d(string=hai) anos
pai
achega
9d4afeac31
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  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: