TufayelLUS / Voice-Based-ChatBot-Using-Google-Bard-And-Speech-Recognition

Voice based ChatBot using google bard unofficial API library and Google speech recognition library of Python

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Voice Based ChatBot Using Google Bard And Speech Recognition

Voice based ChatBot using google bard unofficial API library and Google speech recognition library of Python

Library Requirements

pip install pyttsx3 SpeechRecognition bardapi

What does it do?

This python script is able to listen to your microphone input indefinitely and recognize speech and converts it to text and sends it to google bard unofficial API and gets the response from it and speaks using text to speech engine. It will act as an AI assistant for you and will use google bard to generate response until you stop it.

How to use?

This is a python program and it needs you to install python 3 from Official Python Website and then install it with "Add to Path" support enabled. Once installed properly, you have to install the the library requirements by running the command written in above section which is pip install pyttsx3 SpeechRecognition bardapi on your command prompt/terminal and then you may execute this python script.

Disclaimer

Some of its code has been collected from different internet sources that are publicly available and put together to achieve this.

About

Voice based ChatBot using google bard unofficial API library and Google speech recognition library of Python


Languages

Language:Python 100.0%