A simple AI-powered chat application built with Python and Streamlit that converts text responses into speech.
- 💬 Chat interface powered by AI
- 🔊 Converts chat responses (or any input text) into speech
- 🐍 Built entirely with Python and Streamlit
- ⚡ Lightweight and easy to run locally
- Python 3.x
- Streamlit – for the web interface
- Text-to-Speech library (e.g.,
pyttsx3/gTTS) – update based on what you used - AI/Chat model or API – update based on what you used (e.g., OpenAI, Hugging Face, etc.)
-
Clone the repository
git clone https://github.com/your-username/your-repo-name.git cd your-repo-name -
Create a virtual environment (optional but recommended)
python -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activate
-
Install dependencies
pip install -r requirements.txt
Run the Streamlit app:
streamlit run app.pyThen open the local URL shown in your terminal (usually http://localhost:8501) in your browser.
- User types a message into the chat interface.
- The AI generates a text response.
- The response is converted to speech using a text-to-speech engine.
- The audio is played back directly in the app.
├── project.py # Main Streamlit application
├── robot.avif # picture used
├── README.md # Project documentation
└── ...
Create a requirements.txt file with your dependencies, for example:
streamlit
pyttsx3
- Add voice input (speech-to-text)
- Support multiple languages/voices
- Deploy on Streamlit Community Cloud
This project is licensed under the MIT License.
Contributions, issues, and feature requests are welcome! Feel free to check the issues page.
Made with ❤️ using Python and Streamlit.