streamlabspolly_fix.py

fixes the streamlabspolly error:

Error occurred calling Streamlabs Polly
pull/1966/head
Basti 2 years ago committed by GitHub
parent 7bc1d2fa8f
commit 8166668989
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -44,7 +44,8 @@ class StreamlabsPolly:
) )
voice = str(settings.config["settings"]["tts"]["streamlabs_polly_voice"]).capitalize() voice = str(settings.config["settings"]["tts"]["streamlabs_polly_voice"]).capitalize()
body = {"voice": voice, "text": text, "service": "polly"} 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): if not check_ratelimit(response):
self.run(text, filepath, random_voice) self.run(text, filepath, random_voice)

Loading…
Cancel
Save