Merge pull request #1966 from Bastiy/patch-4

streamlabspolly_fix.py
This commit is contained in:
Jason Cameron authored and GitHub committed 2024-03-01 17:17:02 -05:00
commit 91c2b090cf
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)