Previously, I built a Google Gemini-powered voice chatbot (assistant) with Python. However, in that code, I used sequential (programming) processing such that there is a pause in the middle of the reply from AI. In this video, I will show you how to build a Google Gemini-powered voice chatbot with parallel processing in Python. Specifically, we will use parallel computing in Python to split tasks such as Text generation, Text-to-Speech conversation, and audio playing onto three threads (multithreading) and accelerate the program. I have one version of the code that only works on Raspberry Pi because it requires LEDs and resistors. If you do not have LEDs or resistors, I have another version that works on Raspberry Pi and Windows PC.
Please check the GitHub page for the Python code and additional packages here:
github.com/techmakerai/Parall...
Here is the link to my previous video in which I talked about the Google Gemini API key,
• Build a Google Gemini ...
Hardware:
1. Raspberry Pi (amzn.to/4bmstJa)
2. microSD card (amzn.to/4ay0HbY)
2. Audio amplifier (amzn.to/3JjPWy9)
3. Mini speaker (amzn.to/3TB9Pp3)
4. USB Microphone (amzn.to/3HGGSCA)
5. (optional) LEDs and resistors (amzn.to/3Jg4Yoz)
If you found my videos helpful, please consider supporting my channel at:
www.buymeacoffee.com/techmakerai
#googlegemini #chatbot #raspberrypi #multithreading #voiceassistant #python #parallel #gemini #pythontutorial #largelanguagemodels #ai #aichatbots #raspberrypiprojects #raspberrypi4 #api #programming #tutorial #pythonprogramming #python3 #pythonprojects #speaker #microphone #led #resistors
29 апр 2024