From 3e1759e5d2b02aef6d3e96edb55d9b02442406c1 Mon Sep 17 00:00:00 2001 From: Alex Orid Date: Thu, 21 Jan 2021 16:04:53 -0500 Subject: [PATCH] Renamed Config Variable Renamed streamlabsVoice to PollyVoice --- config.py | 2 +- tts.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/config.py b/config.py index b7136e4..6636bba 100644 --- a/config.py +++ b/config.py @@ -117,7 +117,7 @@ class PollyVoices(Enum): currentSpeaker = Speaker.GOOGLE_TEXT_TO_SPEECH fileNameStrategy = FileNameStrategy.CONTENT_BASED -streamlabsVoice = PollyVoices.Justin +PollyVoice = PollyVoices.Justin botList = ("Nightbot", "StreamElements", "Moobot", "Praxis Bot", "praxis_bot", "MEE6 +", "Nerdy", "Rythm", "Groovy") diff --git a/tts.py b/tts.py index 04f3123..54790c0 100644 --- a/tts.py +++ b/tts.py @@ -38,7 +38,7 @@ def create_speech_streamlabs(text: str): #Not sure if this approach will work as mp3 on Linux/Mac path = os.path.join(get_tts_dir(), create_file_name(text, "mp3")) if not os.path.exists(path): - body = {"voice": config.streamlabsVoice.value, "text": text} + body = {"voice": config.PollyVoice.value, "text": text} resp = requests.post(streamLabsUrl, data=body).json() sound_file_url = resp["speak_url"] if sound_file_url is not None: