Mohamed Moataz 1 year ago
commit d89953cc89

@ -11,10 +11,9 @@ The only original thing being done is the editing and gathering of all materials
... but what if we can automate that process? 🤔
## Disclaimers 🚨
## Updates 🚨
- **At the moment**, this repository won't attempt to upload this content through this bot. It will give you a file that
you will then have to upload manually.
- **Finally**, the bot created in this repository can now upload the videos generated to YouTube. It also generates the video title, description, tags & thumbnail!
## Requirements

@ -44,8 +44,8 @@ class StreamlabsPolly:
)
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)

Loading…
Cancel
Save