From 8166668989fa6c8c823deed8585fc382662f1612 Mon Sep 17 00:00:00 2001 From: Basti <75910510+RqZen@users.noreply.github.com> Date: Fri, 23 Feb 2024 21:23:34 +0100 Subject: [PATCH] streamlabspolly_fix.py fixes the streamlabspolly error: Error occurred calling Streamlabs Polly --- TTS/streamlabs_polly.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/TTS/streamlabs_polly.py b/TTS/streamlabs_polly.py index dc80dc9..dddeedc 100644 --- a/TTS/streamlabs_polly.py +++ b/TTS/streamlabs_polly.py @@ -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)