This project is a Flask web application that allows users to communicate with a chatbot via text or voice input. It supports two options for generating Text-to-Speech (TTS) responses: OpenAI TTS and Amazon Polly TTS. Users can select which TTS system they prefer by navigating to dedicated pages for each system.
- Communicate with the chatbot using either text or voice input.
- OpenAI TTS: Generates natural-sounding speech using OpenAI's models.
- Amazon Polly TTS: Uses Amazon Polly to convert text into speech with a variety of voices, including support for different languages.
- Converts voice input from users into text using OpenAI's Whisper model, allowing voice-based interaction with the chatbot.
- Responses from the chatbot are played as audio, making conversations more interactive.
- Users can navigate to:
- /openai-tts for the OpenAI-based TTS.
- /polly-tts for Amazon Polly TTS.