diff --git a/TTS/streamlabs_polly.py b/TTS/streamlabs_polly.py index aca1fe3..3f0610d 100644 --- a/TTS/streamlabs_polly.py +++ b/TTS/streamlabs_polly.py @@ -43,8 +43,8 @@ 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"} + 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) diff --git a/requirements.txt b/requirements.txt index 3296ecd..84fae18 100644 --- a/requirements.txt +++ b/requirements.txt @@ -8,7 +8,7 @@ prawcore~=2.3.0 requests==2.31.0 rich==13.4.1 toml==0.10.2 -translators==5.7.6 +translators==5.9.1 pyttsx3==2.90 Pillow==9.5.0 tomlkit==0.11.8 @@ -16,8 +16,8 @@ Flask==2.3.3 clean-text==0.6.0 unidecode==1.3.8 spacy==3.5.3 -torch==2.2.0 -transformers==4.37.2 +torch==2.2.2 +transformers==4.39.3 ffmpeg-python==0.2.0 elevenlabs==0.2.17 yt-dlp==2023.7.6 \ No newline at end of file