Compare commits
10 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0d419c95ac | ||
|
|
7a66fc5d2c | ||
|
|
e9f40a3a5d | ||
|
|
f9295b342d | ||
|
|
a6edfdb549 | ||
|
|
ad564d0bfc | ||
|
|
624097808c | ||
|
|
0bec6a99bb | ||
|
|
46e49c04db | ||
|
|
cb44cb0598 |
38
.github/ISSUE_TEMPLATE/bug_report.md
vendored
Normal file
38
.github/ISSUE_TEMPLATE/bug_report.md
vendored
Normal file
@@ -0,0 +1,38 @@
|
|||||||
|
---
|
||||||
|
name: Bug report
|
||||||
|
about: Create a report to help us improve
|
||||||
|
title: ''
|
||||||
|
labels: ''
|
||||||
|
assignees: ''
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
**Describe the bug**
|
||||||
|
A clear and concise description of what the bug is.
|
||||||
|
|
||||||
|
**To Reproduce**
|
||||||
|
Steps to reproduce the behavior:
|
||||||
|
1. Go to '...'
|
||||||
|
2. Click on '....'
|
||||||
|
3. Scroll down to '....'
|
||||||
|
4. See error
|
||||||
|
|
||||||
|
**Expected behavior**
|
||||||
|
A clear and concise description of what you expected to happen.
|
||||||
|
|
||||||
|
**Screenshots**
|
||||||
|
If applicable, add screenshots to help explain your problem.
|
||||||
|
|
||||||
|
**Desktop (please complete the following information):**
|
||||||
|
- OS: [e.g. iOS]
|
||||||
|
- Browser [e.g. chrome, safari]
|
||||||
|
- Version [e.g. 22]
|
||||||
|
|
||||||
|
**Smartphone (please complete the following information):**
|
||||||
|
- Device: [e.g. iPhone6]
|
||||||
|
- OS: [e.g. iOS8.1]
|
||||||
|
- Browser [e.g. stock browser, safari]
|
||||||
|
- Version [e.g. 22]
|
||||||
|
|
||||||
|
**Additional context**
|
||||||
|
Add any other context about the problem here.
|
||||||
20
.github/ISSUE_TEMPLATE/feature_request.md
vendored
Normal file
20
.github/ISSUE_TEMPLATE/feature_request.md
vendored
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
---
|
||||||
|
name: Feature request
|
||||||
|
about: Suggest an idea for this project
|
||||||
|
title: ''
|
||||||
|
labels: ''
|
||||||
|
assignees: ''
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
**Is your feature request related to a problem? Please describe.**
|
||||||
|
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
|
||||||
|
|
||||||
|
**Describe the solution you'd like**
|
||||||
|
A clear and concise description of what you want to happen.
|
||||||
|
|
||||||
|
**Describe alternatives you've considered**
|
||||||
|
A clear and concise description of any alternative solutions or features you've considered.
|
||||||
|
|
||||||
|
**Additional context**
|
||||||
|
Add any other context or screenshots about the feature request here.
|
||||||
76
CODE_OF_CONDUCT.md
Normal file
76
CODE_OF_CONDUCT.md
Normal file
@@ -0,0 +1,76 @@
|
|||||||
|
# Contributor Covenant Code of Conduct
|
||||||
|
|
||||||
|
## Our Pledge
|
||||||
|
|
||||||
|
In the interest of fostering an open and welcoming environment, we as
|
||||||
|
contributors and maintainers pledge to making participation in our project and
|
||||||
|
our community a harassment-free experience for everyone, regardless of age, body
|
||||||
|
size, disability, ethnicity, sex characteristics, gender identity and expression,
|
||||||
|
level of experience, education, socio-economic status, nationality, personal
|
||||||
|
appearance, race, religion, or sexual identity and orientation.
|
||||||
|
|
||||||
|
## Our Standards
|
||||||
|
|
||||||
|
Examples of behavior that contributes to creating a positive environment
|
||||||
|
include:
|
||||||
|
|
||||||
|
* Using welcoming and inclusive language
|
||||||
|
* Being respectful of differing viewpoints and experiences
|
||||||
|
* Gracefully accepting constructive criticism
|
||||||
|
* Focusing on what is best for the community
|
||||||
|
* Showing empathy towards other community members
|
||||||
|
|
||||||
|
Examples of unacceptable behavior by participants include:
|
||||||
|
|
||||||
|
* The use of sexualized language or imagery and unwelcome sexual attention or
|
||||||
|
advances
|
||||||
|
* Trolling, insulting/derogatory comments, and personal or political attacks
|
||||||
|
* Public or private harassment
|
||||||
|
* Publishing others' private information, such as a physical or electronic
|
||||||
|
address, without explicit permission
|
||||||
|
* Other conduct which could reasonably be considered inappropriate in a
|
||||||
|
professional setting
|
||||||
|
|
||||||
|
## Our Responsibilities
|
||||||
|
|
||||||
|
Project maintainers are responsible for clarifying the standards of acceptable
|
||||||
|
behavior and are expected to take appropriate and fair corrective action in
|
||||||
|
response to any instances of unacceptable behavior.
|
||||||
|
|
||||||
|
Project maintainers have the right and responsibility to remove, edit, or
|
||||||
|
reject comments, commits, code, wiki edits, issues, and other contributions
|
||||||
|
that are not aligned to this Code of Conduct, or to ban temporarily or
|
||||||
|
permanently any contributor for other behaviors that they deem inappropriate,
|
||||||
|
threatening, offensive, or harmful.
|
||||||
|
|
||||||
|
## Scope
|
||||||
|
|
||||||
|
This Code of Conduct applies both within project spaces and in public spaces
|
||||||
|
when an individual is representing the project or its community. Examples of
|
||||||
|
representing a project or community include using an official project e-mail
|
||||||
|
address, posting via an official social media account, or acting as an appointed
|
||||||
|
representative at an online or offline event. Representation of a project may be
|
||||||
|
further defined and clarified by project maintainers.
|
||||||
|
|
||||||
|
## Enforcement
|
||||||
|
|
||||||
|
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
||||||
|
reported by contacting the project team at puranjaysavarmattas@gmail.com. All
|
||||||
|
complaints will be reviewed and investigated and will result in a response that
|
||||||
|
is deemed necessary and appropriate to the circumstances. The project team is
|
||||||
|
obligated to maintain confidentiality with regard to the reporter of an incident.
|
||||||
|
Further details of specific enforcement policies may be posted separately.
|
||||||
|
|
||||||
|
Project maintainers who do not follow or enforce the Code of Conduct in good
|
||||||
|
faith may face temporary or permanent repercussions as determined by other
|
||||||
|
members of the project's leadership.
|
||||||
|
|
||||||
|
## Attribution
|
||||||
|
|
||||||
|
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
|
||||||
|
available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html
|
||||||
|
|
||||||
|
[homepage]: https://www.contributor-covenant.org
|
||||||
|
|
||||||
|
For answers to common questions about this code of conduct, see
|
||||||
|
https://www.contributor-covenant.org/faq
|
||||||
1
CONTRIBUTING.md
Normal file
1
CONTRIBUTING.md
Normal file
@@ -0,0 +1 @@
|
|||||||
|
If you want to contribute to this project and have a fun time, then you can just fill out [this form](https://psmforums.wordpress.com/support/) to get in touch with us.
|
||||||
1
_config.yml
Normal file
1
_config.yml
Normal file
@@ -0,0 +1 @@
|
|||||||
|
theme: jekyll-theme-hacker
|
||||||
79
index.md
Normal file
79
index.md
Normal file
@@ -0,0 +1,79 @@
|
|||||||
|
# **Create your own virtual assistant with just a few lines code (Using only PYTHON)**
|
||||||
|
|
||||||
|
_`Last Updated: December 22' 2020`_
|
||||||
|
|
||||||
|
Hello & Welcome to this git page. Here I just created my own
|
||||||
|
virtual assistant with just a few lines of code. It is not an
|
||||||
|
issue if you are a beginner, or an advanced coder this way of
|
||||||
|
building your own virtual assistant is very simple and quick.
|
||||||
|
|
||||||
|
The only major thing required from your side is the will to go
|
||||||
|
step by step with me and by the end of it you will have your own
|
||||||
|
virtual assistant up & running as a charm.
|
||||||
|
|
||||||
|
To learn more about how I did it you can watch my YouTube
|
||||||
|
video on this or [click here]().
|
||||||
|
|
||||||
|
## Pre-Requisites:
|
||||||
|
1. Python Interpreter (Like [PyCharm](https://www.jetbrains.com/pycharm/))
|
||||||
|
2. Python Environment (Like [Anaconda](https://www.anaconda.com/products/individual))
|
||||||
|
3. This [git repo](https://github.com/psavarmattas/PSMBot-Virtual-Assistant.git)
|
||||||
|
4. Bellow mentioned python packages:
|
||||||
|
|
||||||
|
-> [speechrecognition](https://pypi.org/project/SpeechRecognition/)
|
||||||
|
|
||||||
|
-> [pyttsx3](https://pypi.org/project/pyttsx3/)
|
||||||
|
|
||||||
|
-> [pywhatkit](https://pypi.org/project/pywhatkit/)
|
||||||
|
|
||||||
|
-> [wikipedia](https://pypi.org/project/wikipedia/)
|
||||||
|
|
||||||
|
-> [pyjokes](https://pypi.org/project/pyjokes/)
|
||||||
|
|
||||||
|
5. Basic knowledge of how Python works & computers work
|
||||||
|
6. A will to explore
|
||||||
|
|
||||||
|
When all the above pre-requisites are there and ready you can
|
||||||
|
start to work on your own virtual assistant. Please follow each
|
||||||
|
and every step in order & if you have any error just go to the issues
|
||||||
|
to see if you find any issue that matches your which is already
|
||||||
|
resolved before opening an issues.
|
||||||
|
|
||||||
|
## Steps:
|
||||||
|
|
||||||
|
### For Windows users:
|
||||||
|
1. Open PyCharm & create a new project with your virtual environment ready.
|
||||||
|
2. Open the terminal and paste the following in sequential order line by line(Execute it one by one):
|
||||||
|
|
||||||
|
`pip install speechRecognistion`
|
||||||
|
|
||||||
|
`pip install pyttsx3`
|
||||||
|
|
||||||
|
`pip install pywhatkit`
|
||||||
|
|
||||||
|
`pip install wikipedia`
|
||||||
|
|
||||||
|
`pip install pyjokes`
|
||||||
|
|
||||||
|
_Install this if necessary (Only when the code gives error)_
|
||||||
|
|
||||||
|
`pip install pyaudio`
|
||||||
|
|
||||||
|
3. Copy the code given in main.py (in this git) & you will have the code up & running on your pc.
|
||||||
|
_(Note: Creating two different files for weather & main you will have to import weather.py in the main.py file by using the `import weather` code in the main.py, therefore please make sure that the code for it is there or an error will be produced while running the weather command in the assistant.)_
|
||||||
|
4. If you want to learn how this code actually works the go [watch my YouTube video]() for a better understanding.
|
||||||
|
|
||||||
|
### For Linux/MacOs users:
|
||||||
|
|
||||||
|
1. Learn all the above commands on terminal.
|
||||||
|
2. Make sure to use pip3, because in linux pip refers for python2 and pip3 refers to python3.
|
||||||
|
3. Install these too - `pip3 install pyAudio`.
|
||||||
|
|
||||||
|
|
||||||
|
## Feature List (v1.0):
|
||||||
|
|
||||||
|
1. Play videos on YouTube.
|
||||||
|
2. Search wikipedia with your queries.
|
||||||
|
3. Search google with your queries.
|
||||||
|
4. Listen to jokes.
|
||||||
|
5. Ask for the weather (only New Delhi, India available right now).
|
||||||
21
readme.md
21
readme.md
@@ -1,5 +1,6 @@
|
|||||||
# **Create your own virtual assistant with just a few lines code (Using only PYTHON)**
|
# **Create your own virtual assistant with just a few lines code (Using only PYTHON)**
|
||||||
|
|
||||||
|
_`Last Updated: December 22' 2020`_
|
||||||
|
|
||||||
Hello & Welcome to this git page. Here I just created my own
|
Hello & Welcome to this git page. Here I just created my own
|
||||||
virtual assistant with just a few lines of code. It is not an
|
virtual assistant with just a few lines of code. It is not an
|
||||||
@@ -16,8 +17,21 @@ video on this or [click here]().
|
|||||||
## Pre-Requisites:
|
## Pre-Requisites:
|
||||||
1. Python Interpreter (Like [PyCharm](https://www.jetbrains.com/pycharm/))
|
1. Python Interpreter (Like [PyCharm](https://www.jetbrains.com/pycharm/))
|
||||||
2. Python Environment (Like [Anaconda](https://www.anaconda.com/products/individual))
|
2. Python Environment (Like [Anaconda](https://www.anaconda.com/products/individual))
|
||||||
3. Basic knowledge of how Python works & computers work
|
3. This [git repo](https://github.com/psavarmattas/PSMBot-Virtual-Assistant.git)
|
||||||
4. A will to explore
|
4. Bellow mentioned python packages:
|
||||||
|
|
||||||
|
-> [speechrecognition](https://pypi.org/project/SpeechRecognition/)
|
||||||
|
|
||||||
|
-> [pyttsx3](https://pypi.org/project/pyttsx3/)
|
||||||
|
|
||||||
|
-> [pywhatkit](https://pypi.org/project/pywhatkit/)
|
||||||
|
|
||||||
|
-> [wikipedia](https://pypi.org/project/wikipedia/)
|
||||||
|
|
||||||
|
-> [pyjokes](https://pypi.org/project/pyjokes/)
|
||||||
|
|
||||||
|
5. Basic knowledge of how Python works & computers work
|
||||||
|
6. A will to explore
|
||||||
|
|
||||||
When all the above pre-requisites are there and ready you can
|
When all the above pre-requisites are there and ready you can
|
||||||
start to work on your own virtual assistant. Please follow each
|
start to work on your own virtual assistant. Please follow each
|
||||||
@@ -46,6 +60,7 @@ _Install this if necessary (Only when the code gives error)_
|
|||||||
`pip install pyaudio`
|
`pip install pyaudio`
|
||||||
|
|
||||||
3. Copy the code given in main.py (in this git) & you will have the code up & running on your pc.
|
3. Copy the code given in main.py (in this git) & you will have the code up & running on your pc.
|
||||||
|
_(Note: Creating two different files for weather & main you will have to import weather.py in the main.py file by using the `import weather` code in the main.py, therefore please make sure that the code for it is there or an error will be produced while running the weather command in the assistant.)_
|
||||||
4. If you want to learn how this code actually works the go [watch my YouTube video]() for a better understanding.
|
4. If you want to learn how this code actually works the go [watch my YouTube video]() for a better understanding.
|
||||||
|
|
||||||
### For Linux/MacOs users:
|
### For Linux/MacOs users:
|
||||||
@@ -55,7 +70,7 @@ _Install this if necessary (Only when the code gives error)_
|
|||||||
3. Install these too - `pip3 install pyAudio`.
|
3. Install these too - `pip3 install pyAudio`.
|
||||||
|
|
||||||
|
|
||||||
## Feature List:
|
## Feature List (v1.0):
|
||||||
|
|
||||||
1. Play videos on YouTube.
|
1. Play videos on YouTube.
|
||||||
2. Search wikipedia with your queries.
|
2. Search wikipedia with your queries.
|
||||||
|
|||||||
Reference in New Issue
Block a user