ChatAI is a voice-enabled chat application that uses OpenAI's GPT-3 for conversational AI. Users can interact with the AI by speaking into their microphone or by typing their queries.
- Voice input: Speak to the AI using your microphone.
- Text input: Type your queries to the AI.
- Conversational AI: Powered by OpenAI's GPT-3.
- Interactive GUI: User-friendly interface built with CustomTkinter.
- Light and Dark Modes: Choose your preferred theme.
- Python
- SpeechRecognition
- OpenAI API
- pyttsx3
- CustomTkinter
- Pillow
- Clone the repository:
git clone <repository_url> cd <repository_directory>
- Create a virtual environment and activate it:
python -m venv venv source venv/bin/activate # On Windows use `venv\Scripts\activate`
- Install dependencies:
(Note: You'll need to create a
pip install -r requirements.txt
requirements.txtfile if one doesn't exist yet. It should include libraries likespeechrecognition,openai,pyttsx3,customtkinter,Pillow,python-dotenv) - Set up environment variables:
- Create a
.envfile in the root directory. - Add your OpenAI API key to the
.envfile:GPT=your_openai_api_key
- Create a
- Run the application:
python main.py
- Launch the application.
- Click the microphone button to speak your query, or type your query into the text box and press Enter.
- The AI's response will be displayed and spoken aloud.
- Use the reset button to clear the conversation history.
- Change the theme (Dark/Light) using the dropdown menu.
- Click the info button for a brief description of the application.
Contributions are welcome! If you have any ideas, suggestions, or bug fixes, please open an issue or submit a pull request.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature) - Commit your Changes (
git commit -m 'Add some AmazingFeature') - Push to the Branch (
git push origin feature/AmazingFeature) - Open a Pull Request