SANA - A voice controllable virtual assistant based on python to automate your tasks and chat with.
Hi , this is a voice enabled virtual assistant. If ,you are wondering why is the name SANA, it is just one of my friend's name ^_^
Whenever we run the assistant it should greet us depending upon the time of the day!
Now, the assistant should be able to do what we say.Example: If we say open google and search something, it should search for something
If we ask hey sana what is the time? It will tell the time
If we ask play music for me then it will play music from a specific directory.
If we ask for information about someone(celeb) it will fetch that from wikipedia.
It should be even able to search for a specific title said by us in youtube
Let us start discussing how the assistant will work. The idea is to use speech recognition to get the voice as a text. Accordingly, we can perform various operation. Example: if we find the word "time" we can reply with the current time. Refer to the code for better understanding.
You should put your microphone's device index in place of mine.
To know yours, run this in python.
import speech_recognition as sr
print(sr.Microphone.list_microphone_names())
Use command pip install -r requirements.txt to install the modules all together.
Notice, some modules may still need to be downloaded and installed manually.
Required libraries and modules. (Here I mentioned the modules that you need to download. The rest of the modules used in the code are inbuilt with python.)
#speech_recognition: pip install SpeechRecognition
#gtts: pip install gTTS
#playsound : pip install playsound
#wikipedia: pip install wikipedia
#smtplib: pip install smtplib
#selenium: pip install selenium
#bs4: pip install bs4
#requests: pip install requests
#pyaudio: pip install pyaudio