Skip to content

The agent that grows with you

fix(tts): use microsecond timestamp to prevent concurrent output path collision

Chaz Dinkle7b0a575c82d2
diff --git a/tools/tts_tool.py b/tools/tts_tool.py
index 21361786162..76b130ee28a 100644
--- a/tools/tts_tool.py
+++ b/tools/tts_tool.py
@@ -2708,7 +2708,7 @@ def text_to_speech_tool(
file_path, command_provider_config
)
else:
- timestamp = datetime.datetime.now().strftime("%Y%m%d_%H%M%S")
+ timestamp = datetime.datetime.now().strftime("%Y%m%d_%H%M%S_%f")
out_dir = Path(DEFAULT_OUTPUT_DIR)
out_dir.mkdir(parents=True, exist_ok=True)
if command_provider_config is not None: