Update streamlabs_polly.py

pull/1944/head
dieperdev 11 months ago committed by GitHub
parent 3d813791a5
commit 49ddc36b44
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -43,8 +43,9 @@ class StreamlabsPolly:
f"Please set the config variable STREAMLABS_POLLY_VOICE to a valid voice. options are: {voices}"
)
voice = str(settings.config["settings"]["tts"]["streamlabs_polly_voice"]).capitalize()
headers = {"referer": "https://streamlabs.com"}
body = {"voice": voice, "text": text, "service": "polly"}
response = requests.post(self.url, data=body)
response = requests.post(self.url, headers=headers, data=body)
if not check_ratelimit(response):
self.run(text, filepath, random_voice)

Loading…
Cancel
Save