Coder Social home page Coder Social logo

omonimus1 / personal_assistant Goto Github PK

View Code? Open in Web Editor NEW
12.0 2.0 1.0 5.02 MB

๐ŸŽ™๏ธ A vocal assistant that performs other tasks than simply talk, using Text-to-Speech and Speech-To-text.

Python 100.00%
python pyaudio personal-assistant personal-assistants google-api text-to-speech speech-to-text pyttsx3 speech text-to-speech-python3

personal_assistant's Introduction

personal_assistant

  1. What you can find in this repository
  2. Functionalities
  3. How to run it
  4. How to contribute
  5. Connect with me

What you can find in this repository

Here you can find a personal assistant that I have created to learn more about Text-To-Speech and Spee-to-Text techinques and practice with Python.

Functionalities

Sophia (the virtual assistant), is able to:

  • Search something su wikipedia for you
  • Provide you the today's date
  • Turn off your device
  • Reboot your device
  • Provide you information about the percentage of the battery and its state (plugged or not plugged)

How to run it

# Activate the virtual environment 
source venv/bin/activate

# go in the source dirctory
cd src/

# Run the assistant
python assistant.py

# try to say 'Hello assistant'
# OR 'How are you' / 'What date is today'
# OR 'reboot my computer' / 'turn off my computer' etc...

System requirements

  • Python interpreter
  • pyttsx3 pip install pyttsx3
  • libespeak1 sudo apt-get install libespeack1
  • SpeechRecognition pip install SpeechRecognition
  • PyAudio pip install PyAudio
  • psutil wget https://bootstrap.pypa.io/get-pip.py -O - | python
  • mps-youtube pip install --upgrade youtube-dl
  • Python binding - vlc https://wiki.videolan.org/Python_bindings/

Problems with PyAudio?

sudo apt-get install portaudio19-dev python-pyaudio

How to contribute

  1. Fork the repository
  2. Do the desired changes (add/delete/modify)
  3. Make a pull request

When to contribute

  1. If you want to suggest a new feature or update

Mind that

Constructive criticisms or code reviews of any kind are very much welcome.

If you have any questions about the solutions you can find here, feel free to contact me at: [email protected]

๐Ÿ”— Links - Get my Linktree

linked-in github medium gmail Twitter

Apply for a mentorship session with me (get a 7 days free trial)

MentorCruise

Support me

If you need more material like this, nominate me as github start, to get help the project to gain more visibility and contributions Paypal Me

Buy Me A Coffee

personal_assistant's People

Contributors

omonimus1 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

shivansh-p

personal_assistant's Issues

Tell me a joke

Feature details

The assistant must be to tell me a random joke from a finite set of jokes stored

BE-2 Google calendar integration

I need to connect my personal assistant to my Google calendar
Describe the solution you'd like

Additional context
Add any other context or screenshots about the feature request here.
As a software developer, I need to know all my events and meetings scheduled during my working week.

BE-3 : Get current Date

Describe the solution you'd like
The assistant must be able to tell me what day it is. Giving this information with the following format: Ex : Today is the 27th of March

Search a query on Wikipedia

Feature Details

The system must be able to search a query online and provide useful information about my search

Provide time and date

The application must be able to provide information about the current date and time.
For modularity reason, every function about the date/time must return single information, implementing

  • getTime
  • get day of the month
  • get month of the year
  • get year

[BUG] If the user does not say it's name the program crash

Describe the bug
There will be a crash if the user does not say its name when the program starts

To Reproduce
Steps to reproduce the behavior:

  1. Run assistant.py
  2. Don't say anything when the program asks for your name
  3. Wait until the time will run out

*Expected behavior
It should ask again for the name until the assistant does not get at least a word

BE-1 : Check if the username is already stored in our system

Problem
Actually, the application asks always for a username even if it is already stored in the user_data.json

**Solution **
Check if the .json file that contains the username exists. If the file exists, fetch the username value, otherwise, ask the username and store it in user_data.json file to create data persistency.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.