/JARVIS-OpenAI-Voice-Assistant

Jarvis is a voice-enabled chatbot powered by OpenAI's GPT-3.5-turbo. It leverages state-of-the-art natural language processing to deliver intelligent and conversational interactions.

Primary LanguagePython

Jarvis: A Real-time Voice Assistant using OpenAI API

Jarvis is an advanced voice-enabled chatbot powered by OpenAI's GPT-3.5-turbo. Utilizing state-of-the-art natural language processing, it delivers intelligent, conversational interactions with users.

Demo Video

https://www.youtube.com/watch?v=2dPEZmBCwpQ

Features

Real-time voice recognition and response Customized AI behavior based on Iron Man's Jarvis Text-to-speech and speech-to-text capabilities using gtts, pygame, and speech_recognition libraries User-friendly and interactive experience

Installation

Clone the repository:

git clone https://github.com/yourusername/Jarvis.git

Install the required libraries:

pip install -r requirements.txt

Add your OpenAI API key to the script:

openai.api_key = "your_api_key_here"

Run Your Code

python main.py

How It Works

Jarvis leverages the OpenAI API to generate context-aware responses based on user input. The application uses the following libraries for audio processing:

gtts: Converts text to speech using Google's Text-to-Speech API

pygame: Plays audio files with adjustable speed and volume

speech_recognition: Transcribes audio input using Google's Speech Recognition API

Contributing

We welcome your contributions! Feel free to submit issues, feature requests, and pull requests to help improve Jarvis.

License This project is licensed under the MIT License.

We hope you enjoy using Jarvis and look forward to seeing what you create!