GithubHelp home page GithubHelp logo

prettywork2021 / voice-based-e-mail Goto Github PK

View Code? Open in Web Editor NEW

This project forked from code-enthusiasts/voice-based-e-mail

0.0 0.0 0.0 9 KB

This is a Python Application which allows its users to send, receive E-Mails through voice.

License: Other

Python 100.00%

voice-based-e-mail's Introduction

Voice-Based-E-Mail

This is a Python Application which allows its users to send, receive E-Mails through voice.

Complete the steps described in the rest of this page, and in about five minutes you'll have a simple Python command-line application that makes requests to the Gmail API.

Prerequisites:-

  1. Python 2.6 or greater.
  2. The pip package management tool.
  3. Access to the internet and a web browser.
  4. A Google account with Gmail enabled.

Use the link given to create client_secret.json https://developers.google.com/gmail/api/quickstart/python

Step 1: Turn on the Gmail API

a)Use this wizard to create or select a project in the Google Developers Console and automatically turn on the API. Click Continue, then Go to   credentials.
b)On the Add credentials to your project page, click the Cancel button.
c)At the top of the page, select the OAuth consent screen tab. Select an Email address, enter a Product name if not already set, and click the    Save button.
d)Select the Credentials tab, click the Create credentials button and select OAuth client ID.
e)Select the application type Other, enter the name "Gmail API Quickstart", and click the Create button.
f)Click OK to dismiss the resulting dialog.
g)Click the file_download (Download JSON) button to the right of the client ID.
h)Move this file to your working directory and rename it client_secret.json.

Step 2: Install the Google Client Library

    Run the following command to install the library using pip:

    pip install --upgrade google-api-python-client

Step 3: Run the following commands on terminal-

    1) $ sudo apt-get install python-pip (check the version by running $ pip -V , must be version 9.0.1 or above).
    2) $ sudo python -m pip install html2text
    3) $ sudo pip install git
    4) $ sudo apt-get install libasound-dev
    5) $ git clone http://people.csail.mit.edu/hubert/git/pyaudio.git
    6) $ cd pyaudio
    7) $ sudo python setup.py install
    8) $ sudo apt-get install libportaudio-dev
    9) $ sudo apt-get install python-dev
   10) $ sudo apt-get install libportaudio0 libportaudio2 libportaudiocpp0 portaudio19-dev
   11) $ sudo pip install SpeechRecognition        

Step 4: Save the files voice_project.py, send.py, text_speech.py, listmessages.py, authenticate.py, getmessage.py, client_secret.json in a folder named voice EMail

Step 5: Open Terminal and use the command 'cd voice EMail' to change the directory.

Step 6: Run 'python voice_project.py' to start the application

voice-based-e-mail's People

Contributors

vanshjain2809 avatar chayan-dhaddha avatar

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.