Skip to content

Commit

Permalink
Merge pull request #2003 from elebumm/JasonLovesDoggo-patch-1
Browse files Browse the repository at this point in the history
Update streamlabs_polly.py
  • Loading branch information
JasonLovesDoggo authored Apr 1, 2024
2 parents 91c2b09 + c704929 commit 6411eb1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions TTS/streamlabs_polly.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ def run(self, text, filepath, random_voice: bool = False):
)
voice = str(settings.config["settings"]["tts"]["streamlabs_polly_voice"]).capitalize()
body = {"voice": voice, "text": text, "service": "polly"}
headers = {"Referer" : "https://streamlabs.com/" }
response = requests.post(self.url, headers=headers,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)

Expand Down

0 comments on commit 6411eb1

Please sign in to comment.