Тёмный

Parallel Processing for Speeding-up a Voice Chatbot with Google Gemini 

TechMakerAI
Подписаться 139
Просмотров 183
50% 1

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

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 2   
@aronds24
@aronds24 20 дней назад
M the 100th subscriber😂😂✨✨ Nice video man
@TechMakerAI
@TechMakerAI 20 дней назад
@aronds24: Thank you for subscribing and your encouragement! It helps me a lot.
Далее
Dynamic #gadgets for math genius! #maths
00:29
Просмотров 2 млн
Sovuq qurol | Million jamoasi
00:56
Просмотров 394 тыс.
Nvidia CUDA in 100 Seconds
3:13
Просмотров 1 млн
Replace Github Copilot with a Local LLM
5:43
Просмотров 123 тыс.
Gemini 1.5 Pro for Code - Part 01
13:24
Просмотров 61 тыс.
ЭТО САМЫЙ ДОРОГОЙ IPAD!
1:00
Просмотров 291 тыс.
Самый дорогой корпус Hyte Y70
0:52
Просмотров 390 тыс.
Я бы сделал дешевле - Samsung Flip 4
1:00