Update streamlabs_polly.py

This commit is contained in:
Jason Cameron authored and GitHub committed 2024-04-01 12:52:09 -04:00
1 parent 21b7600774
commit d52c443ff5
1 file changed
+1 -1
+1 -1
View File
@@ -43,8 +43,8 @@ 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"}
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)