A Flask-based web application that converts text into speech in multiple languages using Google Text-to-Speech (gTTS). The app provides a simple interface for users to input text, select a language, and generate audio output.
- Supports text-to-speech conversion for multiple languages (e.g., English, Hindi).
- Clean and responsive user interface.
- Instant audio playback after conversion.
- Easily extensible to add more languages.
- Backend: Flask
- Frontend: HTML, CSS, and JavaScript
- Text-to-Speech Engine: gTTS (Google Text-to-Speech)
Ensure you have Python 3.8+ and pip
installed on your system.
- Clone the repository:
git clone https://github.com/Ayushpremrocks/Multi-language-Text-To-Speech
- Create a Virtual Environment (Optional but Recommended):
python -m venv venv source venv/bin/activate # On macOS/Linux venv\Scripts\activate # On Windows
- Install dependencies:
pip install -r requirements.txt
- Run the Flask app:
python app.py
- Open your browser and go to:
http://127.0.0.1:5000
- Verify Flask Installation: Run the following command in your terminal
If Flask is installed, you will see output similar to this:
python -m flask --version
Flask 2.3.3 Python 3.x.x
- If Flask is Not Installed: Install Flask using:
pip install Flask
This project is licensed under the MIT License - see the LICENSE file for details.