Update tts_server.py
This commit is contained in:
1 parent
883d8a82d0
commit
3d3047fb93
1 file changed
+7
-7
+7
-7
@@ -79,13 +79,6 @@ load_config()
|
|||||||
##########################
|
##########################
|
||||||
# Central print function #
|
# Central print function #
|
||||||
##########################
|
##########################
|
||||||
def print_message(message, message_type="standard", component="TTS"):
|
|
||||||
"""Centralized print function for AllTalk messages
|
|
||||||
Args:
|
|
||||||
message (str): The message to print
|
|
||||||
message_type (str): Type of message (standard/warning/error/debug_*/debug)
|
|
||||||
component (str): Component identifier (TTS/ENG/GEN/API/etc.)
|
|
||||||
"""
|
|
||||||
# ANSI color codes
|
# ANSI color codes
|
||||||
BLUE = "\033[94m"
|
BLUE = "\033[94m"
|
||||||
# MAGENTA = "\033[95m"
|
# MAGENTA = "\033[95m"
|
||||||
@@ -94,6 +87,13 @@ def print_message(message, message_type="standard", component="TTS"):
|
|||||||
GREEN = "\033[92m"
|
GREEN = "\033[92m"
|
||||||
RESET = "\033[0m"
|
RESET = "\033[0m"
|
||||||
|
|
||||||
|
def print_message(message, message_type="standard", component="TTS"):
|
||||||
|
"""Centralized print function for AllTalk messages
|
||||||
|
Args:
|
||||||
|
message (str): The message to print
|
||||||
|
message_type (str): Type of message (standard/warning/error/debug_*/debug)
|
||||||
|
component (str): Component identifier (TTS/ENG/GEN/API/etc.)
|
||||||
|
"""
|
||||||
prefix = f"[{config.branding}{component}] "
|
prefix = f"[{config.branding}{component}] "
|
||||||
|
|
||||||
if message_type.startswith("debug_"):
|
if message_type.startswith("debug_"):
|
||||||
|
|||||||
Reference in new issue
Block a user