Merge pull request #2003 from elebumm/JasonLovesDoggo-patch-1

Update streamlabs_polly.py
pull/2002/head
Jason Cameron 1 year ago committed by GitHub
commit 6411eb1f60
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -44,8 +44,8 @@ class StreamlabsPolly:
)
voice = str(settings.config["settings"]["tts"]["streamlabs_polly_voice"]).capitalize()
body = {"voice": voice, "text": text, "service": "polly"}
headers = {"Referer" : "https://streamlabs.com/" }
response = requests.post(self.url, headers=headers,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)

Loading…
Cancel
Save