Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

AI Chat & Text-to-Speech Converter

A simple AI-powered chat application built with Python and Streamlit that converts text responses into speech.

Features

  • 💬 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

Tech Stack

  • 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.)

Installation

  1. Clone the repository

    git clone https://github.com/your-username/your-repo-name.git
    cd your-repo-name
  2. Create a virtual environment (optional but recommended)

    python -m venv venv
    source venv/bin/activate   # On Windows: venv\Scripts\activate
  3. Install dependencies

    pip install -r requirements.txt

Usage

Run the Streamlit app:

streamlit run app.py

Then open the local URL shown in your terminal (usually http://localhost:8501) in your browser.

How It Works

  1. User types a message into the chat interface.
  2. The AI generates a text response.
  3. The response is converted to speech using a text-to-speech engine.
  4. The audio is played back directly in the app.

Project Structure

├── project.py          # Main Streamlit application
├── robot.avif          # picture used
├── README.md           # Project documentation
└── ...

Requirements

Create a requirements.txt file with your dependencies, for example:

streamlit
pyttsx3

Future Improvements

  • Add voice input (speech-to-text)
  • Support multiple languages/voices
  • Deploy on Streamlit Community Cloud

License

This project is licensed under the MIT License.

Contributing

Contributions, issues, and feature requests are welcome! Feel free to check the issues page.

Author

Made with ❤️ using Python and Streamlit.

About

An AI-powered chat application built with Python and Streamlit that provides real-time conversational responses through a clean, interactive web interface. Features an intuitive UI, fast response generation, and easy deployment for experimenting with AI-powered conversations

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages