Merge pull request #1944 from dieperdev/develop

Fixing Streamlabspolly issue
This commit is contained in:
Jason Cameron authored and GitHub committed 2024-01-31 16:08:52 -05:00
commit 8fe6f065c5
1 file changed
+2 -1
+2 -1
View File
@@ -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)