Code Monkey home page Code Monkey logo

python-voice-assistant's Introduction

Sarah Voice Assistant

GitHub code size in bytes GitHub issues GitHub last commit

  • Sarah Voice Assistant is a Python voice assistant project on SpeechRecognition, pyttsx3 and GoogleAPI
  • Sarah knows to read data from your Google Calendar (from first running you'll be redirected to Google login page), read email from your Gmail, open browsers, write data to file .txt using notepad.exe and many interesning things ๐Ÿ˜‰

Installation

  • Clone project
  • Create virtual environments in the root of project and activate it:
  • Windows:
pip install virtualenv
virtualenv myvenv_name
myvenv_name\Scripts\activate
  • Linux: at this moment does not support on Linux and macOS

  • To make Sarah Voice Assistant work correctly you'll be need to PyAudio library

  • Check you python version

python --version

For example if your python version is 3.9 and 64 bit you'll be need PyAudio-0.2.11-cp39-cp39-win_amd64 (just install from requirements.txt) If it's different from Python 3.9 then download from here and install it:

pip install PyAudio-0.2.11-cp<python version>-cp<python version>-win<64 or 32 bit>.whl
  • Install other requirements form requirements.txt
pip install -r requirements.txt

Configuring Google Calendar API

  • Use this link to enable the Google Calendar Api
  • Click the button "Enable the Google Calendar API"
  • Next step after downloading credentials.json put this file in project root
  • On first running you'll need to accept Google privacy. (Even if browser will show you warning)

Configuring Google Gmail API

  • Use this link to enable the Google Calendar Api
  • Click the button "Enable the Google Calendar API"
  • Next step after downloading credentials.json put this file in project root
  • On first running you'll need to accept Google privacy. (Even if browser will show you warning)

Usage

While you activate your virtual environments, you'll need to run it by typing in terminal from project root

python main.py
  • Use "Hi Sarah" to wake Sarah. -Key phrases:
  1. "what do I have...", "do I have plans...", "am I busy..."
  2. "make a note", "write this down", "remember this"
  3. "do I have new messages", "do I have messages"
  4. "how can I get", "create a road", "create road", "how long do I need to ride"
  5. "open browser"

Examples using

  • Hi Sarah what do I have on Monday 2nd
  • Hi Sarah make a note

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

python-voice-assistant's People

Contributors

dannycrief avatar dependabot[bot] avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

python-voice-assistant's Issues

Making note doesn't work

Making note doesn't work at all.

To Reproduce
Steps to reproduce the behavior:

  1. Run 'main.py'
  2. Say: "Make a note" to Sarah
  3. Say something to make Sarah note you sentences
  4. See error

Expected behavior
New file with my note was expected, but got error.

Screenshots
image

Desktop (please complete the following information):

  • OS: Windows 10

Update documentation

Update documentation:

  1. Added more info about new functions;
  2. Added info about what Srah can do

Google Gmail auth error. Problems with token

google.auth.exceptions.RefreshError: ('invalid_grant: Token has been expired or revoked.', '{\n "error": "invalid_grant",\n "error_description": "Token has been expired or revoked."\n}')

Create a copy functionality

Needed copy functionality
First of all we need 3 functions of copy:

  1. Copy file
  2. Copy directory
  3. Copy a disk to an external device

Possible solutions
Check if there're any python libraries and use them.

Alternatives I've considered
Check library os and copy files/directories by CMD

Due 23.12.2020

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.