@ -8,7 +8,7 @@ class GTTS:
# voices = []
@staticmethod
async def run(
def run(
text,
filepath
) -> None:
@ -71,7 +71,7 @@ class StreamlabsPolly(BaseApiTTS):
else:
try:
results = requests.get(response.json()["speak_url"])
return results
return results.content
except (KeyError, JSONDecodeError):
if response.json()["error"] == "No text specified!":