streamlabspolly_fix.py
fixes the streamlabspolly error: Error occurred calling Streamlabs Polly
This commit is contained in:
1 parent
7bc1d2fa8f
commit
8166668989
1 file changed
+2
-1
@@ -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)
|
||||
|
||||
|
||||
Reference in new issue
Block a user