/Azure-OpenAI-Chat-TTS

Primary LanguagePythonMIT LicenseMIT

Azure-OpenAI-Chat-TTS

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.

Features

  • Real-time speech recognition
  • Streamed responses from OpenAI's chat model
  • Natural text-to-speech synthesis

Requirements

  • Python 3.7+
  • Azure Cognitive Services subscription
  • OpenAI API key

Installation

  1. Clone the repository:
    git clone https://github.com/yourusername/Azure-OpenAI-Chat-TTS.git
    cd Azure-OpenAI-Chat-TTS
  2. Install the dependencies:
pip install -r requirements.txt

Usage

  1. Replace the placeholder values in main.py with your Azure subscription key, service region, and OpenAI API key.

  2. Run the application

python main.py