Close

Refinements to software

A project log for Home Robot Named Sophie

A next generation home robot with a omni directional drive unit and 6 axis collaborative robot arm

apollo-timbersApollo Timbers 01/01/2024 at 19:350 Comments

Some major refinements were made to the voice_asssit.py and chatgpt3.5.py

voice_assist - Got a nice run though where I cleaned up the code and fixed the weather function. It also now has a internet connection check and alerts the user. 

  1. Weather Report and Attire Suggestions:
    • The get_weather_report function fetches weather data using the OpenWeather API and suggests attire based on the weather conditions.
  2. Internet Connectivity Check:
    • A separate thread continuously checks for internet connectivity and updates the robot's speech output accordingly. It also gracefully handles it a bit better now overall continuing to function in offline mode.

chatgpt3.5.py - This got a huge speed update. For longer Chat GPT responses I noticed the delay was longer. I came to the conclusion that the program must be waiting for the full message back before dictating it. So I added a thread that will start speaking before the whole message has arrived. This has reduced the "Can you explain the water cycle" example from 17 seconds to just 8 seconds. 

Discussions