INNER CODE UNIT · Python
run
shakedzy/companion · companion.py:467
def run() -> None:
"""
Run app
"""
global voices_by_features
restart()
voices_by_features = speech.voices_by_features()
app_cache.text2speech_thread = Thread(target=bot_text_to_speech_queue_func)
app_cache.text2speech_thread.start()
app.run()
########## THREADS ##########
def bot_text_to_speech_queue_func():
"""
This function is meant to run on a parallel thread.