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.
- 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.
- 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
Become a Hackaday.io Member
Create an account to leave a comment. Already have an account? Log In.