streamlabspolly_fix.py

fixes the streamlabspolly error:

Error occurred calling Streamlabs Polly
This commit is contained in:
Basti authored and GitHub committed 2024-02-23 21:23:34 +01:00
1 parent 7bc1d2fa8f
commit 8166668989
1 file changed
+2 -1
+2 -1
View File
@@ -44,7 +44,8 @@ class StreamlabsPolly:
)
voice = str(settings.config["settings"]["tts"]["streamlabs_polly_voice"]).capitalize()
body = {"voice": voice, "text": text, "service": "polly"}
response = requests.post(self.url, data=body)
headers = {"Referer" : "https://streamlabs.com/" }
response = requests.post(self.url, headers=headers,data=body)
if not check_ratelimit(response):
self.run(text, filepath, random_voice)