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 = []
@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):
try:
if response.json()["error"] == "No text specified!":

Loading…
Cancel
Save