From c883dcba42bd4170634271fb1257459524fd94bc Mon Sep 17 00:00:00 2001 From: Drugsosos <44712637+Drugsosos@users.noreply.github.com> Date: Thu, 21 Jul 2022 02:22:27 +0300 Subject: [PATCH] hotfix in streamlabs_polly & GTTS --- TTS/GTTS.py | 2 +- TTS/streamlabs_polly.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/TTS/GTTS.py b/TTS/GTTS.py index 8974ddc..51dd92f 100644 --- a/TTS/GTTS.py +++ b/TTS/GTTS.py @@ -8,7 +8,7 @@ class GTTS: # voices = [] @staticmethod - async def run( + def run( text, filepath ) -> None: diff --git a/TTS/streamlabs_polly.py b/TTS/streamlabs_polly.py index a0b7e19..3cc8cb9 100644 --- a/TTS/streamlabs_polly.py +++ b/TTS/streamlabs_polly.py @@ -71,7 +71,7 @@ class StreamlabsPolly(BaseApiTTS): else: try: results = requests.get(response.json()["speak_url"]) - return results + return results.content except (KeyError, JSONDecodeError): try: if response.json()["error"] == "No text specified!":