|
|
@ -38,7 +38,7 @@ class StreamlabsPolly:
|
|
|
|
else:
|
|
|
|
else:
|
|
|
|
if not settings.config["settings"]["tts"]["streamlabs_polly_voice"]:
|
|
|
|
if not settings.config["settings"]["tts"]["streamlabs_polly_voice"]:
|
|
|
|
raise ValueError(
|
|
|
|
raise ValueError(
|
|
|
|
f"Please set the config variable STREAMLABS_VOICE to a valid voice. options are: {voices}"
|
|
|
|
f"Please set the config variable STREAMLABS_POLLY_VOICE to a valid voice. options are: {voices}"
|
|
|
|
)
|
|
|
|
)
|
|
|
|
voice = str(settings.config["settings"]["tts"]["streamlabs_polly_voice"]).capitalize()
|
|
|
|
voice = str(settings.config["settings"]["tts"]["streamlabs_polly_voice"]).capitalize()
|
|
|
|
body = {"voice": voice, "text": text, "service": "polly"}
|
|
|
|
body = {"voice": voice, "text": text, "service": "polly"}
|
|
|
|