This project is a voice-controlled personal assistant designed to perform various tasks using speech recognition and the OpenAI API. The assistant is built in Python and utilizes several libraries for its functionality.
- Speech Recognition: The assistant can understand voice commands using the
speech_recognition
library. - OpenAI Integration: It leverages the OpenAI API to perform tasks like generating text, answering questions, and more.
- Customizable: Users can add additional functionalities by extending the codebase.
- Multi-Platform: The assistant can run on any platform that supports Python.
To install the required libraries, use the following pip
commands:
pip install speech_recognition
pip install numpy
pip install win32com.client
Before running the assistant, make sure to obtain an API key from the OpenAI website by following this link
(https://openai.com/index/openai-api).
Once you have the API key, replace "Enter Your OPEN AI API KEY HERE"
in the code with your actual API key.
- Clone the repository to your local machine.
- Install the required libraries as mentioned above.
- Obtain an API key from the OpenAI website and replace
"Enter Your OPEN AI API KEY HERE"
in the code with your actual API key. - Run the Python script
main.py
. - Follow the on-screen instructions to interact with the voice-controlled assistant.
speech_recognition
: For speech recognition functionality.openai
: For integrating with the OpenAI API.numpy
: For numerical computations.win32com.client
: For interacting with Windows applications.datetime
,random
,webbrowser
,os
: Python's built-in libraries used for various tasks.
Contributions are welcome! If you'd like to contribute to this project, feel free to fork the repository and submit a pull request with your changes.