diff --git a/build/scripts/lib/config.py b/build/scripts/lib/config.py index 31376ac..339cac6 100644 --- a/build/scripts/lib/config.py +++ b/build/scripts/lib/config.py @@ -60,7 +60,8 @@ vars = [ 'CHAT_HEIGHT', 'DEBUG', 'EXTDATA', - 'TTS' + 'TTS', + 'TTS_URL' ] def get_config(): @@ -87,6 +88,9 @@ def get_config(): logging.warning('Debug-Mode is active') conf['DEBUG'] = True + if not conf['TTS_URL']: + conf['TTS_URL'] = "http://localhost/tts" + if not conf['EXTDATA']: conf['EXTDATA'] = False else: diff --git a/build/www/index.py b/build/www/index.py index f384809..0af4e7b 100644 --- a/build/www/index.py +++ b/build/www/index.py @@ -44,6 +44,7 @@ offline_scene = obs_settings.offline_scene channel = obs_settings.channel chat_height = obs_settings.chat_height tts = obs_settings.tts +tts_url = obs_settings.tts_url if not chat_height: chat_height = int(500) @@ -116,7 +117,7 @@ if connected: if tts: print('