J.A.R.V.I.S. is a virtual assistant implementation inspired by the AI personal assistant from Iron Man. This project uses JavaScript and the OpenAI GPT-4 API to provide virtual assistant and speech recognition functionality.
- Portuguese (Brazil) speech recognition
- Connection with the OpenAI GPT-4 API to provide text-based responses
- Brazilian Portuguese voice responses using the browser's speech synthesis API
- Voice activation and deactivation
- Browser compatible with the speech recognition API, such as Google Chrome
- OpenAI GPT-4 API key (replace the
API_KEY
value ingpt4.js
)
- Clone the repository to your local machine.
- Replace the
API_KEY
value ingpt4.js
with the API key provided by OpenAI. - Open the
index.html
file in Google Chrome or another browser compatible with the speech recognition API. - Say "jarvis listen" to activate speech recognition.
- Say "GPT" followed by your question or command. For example, "GPT, what's the weather like today?"
- The J.A.R.V.I.S. virtual assistant will respond using the GPT-4 API and the voice selected in the browser.
Contributions are welcome! To contribute, follow these steps:
- Fork this repository.
- Create a new branch with your changes.
- Commit your changes.
- Push to your branch.
- Submit a pull request to this repository.
Please ensure that your changes do not cause compatibility issues and follow coding best practices.
This project is distributed under the terms of the Attribution-NonCommercial-ShareAlike 4.0 International (CC BY-NC-SA 4.0) license. See the LICENSE.md
file for details.
If you have any questions, suggestions, or issues with the project, feel free to open an issue in this repository or contact me:
- Name: Thadeu Castelo Branco Ramos
- LinkedIn: https://linkedin.com/in/thadeucbr