A Simple voice assistant.
- Search the web: Example: "Search what is the tallest building in the world"
- Tell you the time and date: Example: "What is the time?" or "What is the date?"
- Search for a track from spotify: Example: "Play Best Life by Hardy Caprio"
- Search Google Maps for a location: Example: "locate London Eye"
voiceassistant.py is written in python 3 so its REQUIRED
It requires the following packages:
- gTTs
- speech_recognition
- PyAudio
- Requests
Install dependancy for PyAudio using:
brew install portaudio
Install Python dependancies using the command:
pipenv install
- Tested on MacOS.
To use the search track feature you must:
-
Have a Spotify Account.
-
Go to Spotify's developer website and create an application.
-
Navigate to you're apps dashboard and copy the Client ID and Client Secret.
-
Place Client ID, Client Secret in the respective variables found in voiceassistant:
self.client_id = "Insert Your Key Here." self.client_secret = "Insert Your Key Here."
Extract and navigate to the zipfile directory and run voiceassistant by executing the main entry point file voiceassistant.py:
python3 voiceassistant.py
- dbrennand - Author - dbrennand
This project is licensed under the MIT License - see the LICENSE for details.