To create a Wikipedia Bot that listen our input, searches for output and reads it for us.
The purpose of Wikipedia Bot is to benefit user just by taking user's speech as input, searches for the topic and provides relevant output in the form of text as well as audio along with an image related to it.
- Bots are normally used to automate certain tasks, they can run without specific instructions from humans.
- It'll be always nice to see something that makes our work simple,Instead searching for something in wikipedia by opening browser Wiki bot just asks what you want and gives all you want.
- Wiki Bot is voice controlled bot that let's you to search and gather information within the Python IDE.
- Wiki Bot browsesall the relevant information and speaks out about it briefly.
- This also shows the related image of corresponding topic.
- Libraries Imported:
wikipedia
datetime
pyttsx3
speech recoginition
pyaudio
urllib.request
os
- Import all the required libraries i.e., wikipedia, datetime, pyttsx3, speech recognition, pyaudio, urllib.request, os.
wikipedia
- Installation:
pip install wikipedia
- Purpose: This used acess wikipedia easily
- Installation:
datetime
- Installation: It is Python's standard library.
- Purpose: For greeting user based on the date and time
pyttsx3
- Installation:
pip install pyttsx3
- Purpose: Converts text to speech.
- Installation:
speech recoginition
- Installation:
pip install speechrecognition
- Purpose: Used to convert our voice input to text.
- Installation:
pyaudio
- Installation:
pip install pyaudio
- Purpose: Used to speak out the information gathered by bot from the wikipedia
- Installation:
urllib.request
- Installation:
pip3 install urllib3
- Purpose: Here it is used for fetching and opening URLs.
- Installation:
os
- Installation: OS is python's standard library.
- Purpose: This provides functions for creating and removing a directory, fetching its contents, changing and identifying the current directory, etc.
- NOTE: Python Extension Packages
If you get any error while downloading and installing the required libraries
Please visit above site and download whl file that supports your windows Version and then try to install it.
- Download the file Wiki_Bot.py
- Run the file Wiki_Bot.py
- Execution of code begins and Asks the topic you want.
- You need speak out the topic you
- Then, starts searching the topic in wikipedia.
- Gathers relevant information to the topic and starts dictation.
- If it show any error regarding libraries, download them as mentioned in workflow.
- If it didn't recognise your voice. Please try to speak clearly.
Image Pathlink: https://github.com/DurgaSai-16/Awesome_Python_Scripts/blob/main/AutomationScripts/Wiki%20Bot/Media/Images/Wiki_Bot%20Output_1.png
Wiki_Bot.Output.mp4
Video Pathlink: https://github.com/DurgaSai-16/Awesome_Python_Scripts/blob/main/AutomationScripts/Wiki%20Bot/Media/Videos/Wiki_Bot%20Output_1.mp4
Image Pathlink: https://github.com/DurgaSai-16/Awesome_Python_Scripts/blob/main/AutomationScripts/Wiki%20Bot/Media/Images/Wiki_Bot%20Output_2.png
Wiki_Bot_Output_2.mp4
Video Pathlink: https://github.com/DurgaSai-16/Awesome_Python_Scripts/blob/main/AutomationScripts/Wiki%20Bot/Media/Videos/Wiki_Bot_Output_2.mp4