This project integrates Azure Cognitive Services for speech recognition and text-to-speech (TTS) with OpenAI's chat model. The application listens to user input, processes it using OpenAI's chat model, and then speaks out the response using Azure TTS.
- Real-time speech recognition
- Streamed responses from OpenAI's chat model
- Natural text-to-speech synthesis
- Python 3.7+
- Azure Cognitive Services subscription
- OpenAI API key
- Clone the repository:
git clone https://github.com/yourusername/Azure-OpenAI-Chat-TTS.git cd Azure-OpenAI-Chat-TTS
- Install the dependencies:
pip install -r requirements.txt
-
Replace the placeholder values in main.py with your Azure subscription key, service region, and OpenAI API key.
-
Run the application
python main.py