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!":