Comprehensive Logging
SARAS features a robust logging system that records all major activities, providing a clear and detailed history for debugging, analysis, and memory functions.
Conversation Log
Records all interactions with the AI, including user input, the AI's response, the source of the AI (OpenAI or local), and processing time.
conversation_log.json
Movement Log
Logs all motor commands, including the direction, duration, and whether the action was successful, providing a complete history of the robot's physical actions.
movement_log.json
Speech Recognition Log
Contains the results from the speech-to-text engine, including the recognized text and the confidence score of the transcription.
stt_log.json
Speech Synthesis Log
Tracks all text-to-speech outputs, noting the text that was spoken and whether the audio was generated and played successfully.
tts_log.json
Real-time Log Viewer
The project includes a real-time log viewer (log_viewer.py
) that can be launched to monitor log files as they are written. This provides immediate insight into the robot's operations during a session, which is invaluable for debugging and development.
# To launch the log viewer for conversations:
python log_viewer.py logs/conversation_log.json
# To view the combined activity log:
python log_viewer.py logs/combined_activity.txt