hotfix in streamlabs_polly & GTTS

pull/963/head
Drugsosos 2 years ago
parent 374263b351
commit c883dcba42
No known key found for this signature in database
GPG Key ID: 8E35176FE617E28D

@ -8,7 +8,7 @@ class GTTS:
# voices = [] # voices = []
@staticmethod @staticmethod
async def run( def run(
text, text,
filepath filepath
) -> None: ) -> None:

@ -71,7 +71,7 @@ class StreamlabsPolly(BaseApiTTS):
else: else:
try: try:
results = requests.get(response.json()["speak_url"]) results = requests.get(response.json()["speak_url"])
return results return results.content
except (KeyError, JSONDecodeError): except (KeyError, JSONDecodeError):
try: try:
if response.json()["error"] == "No text specified!": if response.json()["error"] == "No text specified!":

Loading…
Cancel
Save