voice-chatgpt-python
voice-chatgpt-python copied to clipboard
This project is a conversational AI program that uses speech recognition, text-to-speech, and the OpenAI API to generate responses to user prompts, allowing for a natural conversation flow.
voice-chatgpt-python
This program is a speech recognition and text-to-speech program that utilizes the OpenAI API to generate responses to user prompts.
Requirements
- Python 3.x
- SpeechRecognition
- pyttsx3
- OpenAI API key
- portaudio (for pyaudio)
Installation
- Install Python 3.x
- Install the required libraries by running the following command:
pip install speech_recognition pyttsx3 openai
- Install portaudio by running the following command:
pip install portaudio
- Get an OpenAI API key from OpenAI.
Usage
- Run the program by executing the following command:
python voicechatgpt.py
- Speak into the microphone when prompted.