|
| 1 | +# Wiki Bot🤖 |
| 2 | +## Aim |
| 3 | +To create a Wikipedia Bot that listen our input, searches for output and reads it for us. |
| 4 | +## Purpose |
| 5 | +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. |
| 6 | +## Short Description |
| 7 | +- Bots are normally used to automate certain tasks, they can run without specific instructions from humans. |
| 8 | +- 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. |
| 9 | +- Wiki Bot is voice controlled bot that let's you to search and gather information within the Python IDE. |
| 10 | +- Wiki Bot browsesall the relevant information and speaks out about it briefly. |
| 11 | +- This also shows the related image of corresponding topic. |
| 12 | +- ***Libraries Imported:*** |
| 13 | + - `wikipedia` |
| 14 | + - `datetime` |
| 15 | + - `pyttsx3` |
| 16 | + - `speech recoginition` |
| 17 | + - `pyaudio` |
| 18 | + - `urllib.request` |
| 19 | + - `os` |
| 20 | + |
| 21 | +## Workflow |
| 22 | + |
| 23 | +- Import all the required libraries i.e., wikipedia, datetime, pyttsx3, speech recognition, pyaudio, urllib.request, os. |
| 24 | +- `wikipedia` |
| 25 | + - ***Installation:*** `pip install wikipedia` |
| 26 | + - ***Purpose:*** This used acess wikipedia easily |
| 27 | +- `datetime` |
| 28 | + - ***Installation:*** It is Python's standard library. |
| 29 | + - ***Purpose:*** For greeting user based on the date and time |
| 30 | +- `pyttsx3` |
| 31 | + - ***Installation:*** `pip install pyttsx3` |
| 32 | + - ***Purpose:*** Converts text to speech. |
| 33 | +- `speech recoginition` |
| 34 | + - ***Installation:*** `pip install speechrecognition` |
| 35 | + - ***Purpose:*** Used to convert our voice input to text. |
| 36 | +- `pyaudio` |
| 37 | + - ***Installation:*** `pip install pyaudio` |
| 38 | + - ***Purpose:*** Used to speak out the information gathered by bot from the wikipedia |
| 39 | +- `urllib.request` |
| 40 | + - ***Installation:*** `pip3 install urllib3` |
| 41 | + - ***Purpose:*** Here it is used for fetching and opening URLs. |
| 42 | +- `os` |
| 43 | + - ***Installation:*** OS is python's standard library. |
| 44 | + - ***Purpose:*** This provides functions for creating and removing a directory, fetching its contents, changing and identifying the current directory, etc. |
| 45 | + - **NOTE:** [Python Extension Packages](https://www.lfd.uci.edu/~gohlke/pythonlibs/#pyaudio) |
| 46 | + <ins> |
| 47 | + |
| 48 | +</ins> |
| 49 | + |
| 50 | +``` |
| 51 | +
|
| 52 | +If you get any error while downloading and installing the required libraries |
| 53 | +Please visit above site and download whl file that supports your windows Version and then try to install it. |
| 54 | +``` |
| 55 | + |
| 56 | + |
| 57 | + |
| 58 | +## Compilation Steps |
| 59 | +- Download the file [Wiki_Bot.py](https://github.com/DurgaSai-16/Awesome_Python_Scripts/blob/main/AutomationScripts/Wiki%20Bot/Wiki_Bot.py) |
| 60 | +- Run the file [Wiki_Bot.py](https://github.com/DurgaSai-16/Awesome_Python_Scripts/blob/main/AutomationScripts/Wiki%20Bot/Wiki_Bot.py) |
| 61 | +- Execution of code begins and Asks the topic you want. |
| 62 | +- You need speak out the topic you |
| 63 | +- Then, starts searching the topic in wikipedia. |
| 64 | +- Gathers relevant information to the topic and starts dictation. |
| 65 | +- If it show any error regarding libraries, download them as mentioned in workflow. |
| 66 | +- If it didn't recognise your voice. Please try to speak clearly. |
| 67 | + |
| 68 | + |
| 69 | +## Output |
| 70 | + |
| 71 | + |
| 72 | +Image Pathlink: https://github.com/DurgaSai-16/Awesome_Python_Scripts/blob/main/AutomationScripts/Wiki%20Bot/Media/Images/Wiki_Bot%20Output_1.png |
| 73 | + |
| 74 | +https://user-images.githubusercontent.com/85128689/127961763-46105dd0-82cf-432a-b58e-df493d844511.mp4 |
| 75 | + |
| 76 | +Video Pathlink: https://github.com/DurgaSai-16/Awesome_Python_Scripts/blob/main/AutomationScripts/Wiki%20Bot/Media/Videos/Wiki_Bot%20Output_1.mp4 |
| 77 | + |
| 78 | + |
| 79 | + |
| 80 | + |
| 81 | +Image Pathlink: https://github.com/DurgaSai-16/Awesome_Python_Scripts/blob/main/AutomationScripts/Wiki%20Bot/Media/Images/Wiki_Bot%20Output_2.png |
| 82 | + |
| 83 | +https://user-images.githubusercontent.com/85128689/127965524-b0dc2d77-d41b-4342-b103-1479cb7752bb.mp4 |
| 84 | + |
| 85 | +Video Pathlink: https://github.com/DurgaSai-16/Awesome_Python_Scripts/blob/main/AutomationScripts/Wiki%20Bot/Media/Videos/Wiki_Bot_Output_2.mp4 |
| 86 | + |
| 87 | +## Author: |
| 88 | +[NALLANI DURGA SAI](https://github.com/DurgaSai-16) |
0 commit comments