From 64f2322ba049cdda8773f1f73b5cfde149d31ef1 Mon Sep 17 00:00:00 2001 From: Cyteon <129582290+Cyteon@users.noreply.github.com> Date: Sat, 27 Apr 2024 11:14:53 +0200 Subject: [PATCH] Git merge conflict was not actually resolved --- TTS/streamlabs_polly.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/TTS/streamlabs_polly.py b/TTS/streamlabs_polly.py index ef05056..1bbbc2f 100644 --- a/TTS/streamlabs_polly.py +++ b/TTS/streamlabs_polly.py @@ -43,13 +43,11 @@ 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"} -<<<<<<< HEAD headers = {"Referer": "https://streamlabs.com/"} -======= ->>>>>>> elebumm-master response = requests.post(self.url, headers=headers, data=body) + if not check_ratelimit(response): self.run(text, filepath, random_voice)