fix: incorrect settings path for tts

pull/861/head
Callum Leslie 2 years ago
parent ac04b665de
commit 5a2112b34e
No known key found for this signature in database
GPG Key ID: D382C4AFEECEAA90

@ -33,7 +33,7 @@ def save_text_to_mp3(reddit_obj) -> Tuple[int, int]:
tuple[int,int]: (total length of the audio, the number of comments audio was generated for) tuple[int,int]: (total length of the audio, the number of comments audio was generated for)
""" """
voice = settings.config["tts"]["choice"] voice = settings.config["settings"]["tts"]["choice"]
if voice.casefold() in map(lambda _: _.casefold(), TTSProviders): if voice.casefold() in map(lambda _: _.casefold(), TTSProviders):
text_to_mp3 = TTSEngine(get_case_insensitive_key_value(TTSProviders, voice), reddit_obj) text_to_mp3 = TTSEngine(get_case_insensitive_key_value(TTSProviders, voice), reddit_obj)
else: else:

Loading…
Cancel
Save