|
|
@ -47,7 +47,7 @@ class StreamlabsPolly:
|
|
|
|
with open(filepath, "wb") as f:
|
|
|
|
with open(filepath, "wb") as f:
|
|
|
|
f.write(voice_data.content)
|
|
|
|
f.write(voice_data.content)
|
|
|
|
except (KeyError, JSONDecodeError):
|
|
|
|
except (KeyError, JSONDecodeError):
|
|
|
|
print("Error occured calling Streamlabs Polly")
|
|
|
|
print("Error occurred calling Streamlabs Polly")
|
|
|
|
|
|
|
|
|
|
|
|
def randomvoice(self):
|
|
|
|
def randomvoice(self):
|
|
|
|
return random.choice(self.voices)
|
|
|
|
return random.choice(self.voices)
|
|
|
|