Skip to content

Commit

Permalink
Merge pull request #1966 from Bastiy/patch-4
Browse files Browse the repository at this point in the history
streamlabspolly_fix.py
  • Loading branch information
JasonLovesDoggo authored Mar 1, 2024
2 parents 7bc1d2f + 8166668 commit 91c2b09
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion TTS/streamlabs_polly.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +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"}
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)

Expand Down

0 comments on commit 91c2b09

Please sign in to comment.