This project is a simple Text-to-Speech (TTS) converter web application built using Flask. The application allows users to input text, convert it into speech, and download the resulting audio file. The front-end is created using HTML, CSS, and jQuery.
To get this project up and running on your local machine, follow these steps:
-
Clone the Repository:
git clone https://github.com/shubhamshnd/gtts cd your-repository -
Install Dependencies:
pip install -r requirements.txt
-
Run the Flask Application:
python app.py
- Open your web browser and go to
http://127.0.0.1:5000/. - Enter the text you want to convert into speech in the text area.
- Optionally, provide a filename for the audio file.
- Click on the "Convert to Speech" button to start the conversion.
- Download the generated MP3 file or listen to it directly on the webpage.
app.py: The main Flask application file.tts.py: Headless the text-to-speech conversion logic.templates/index.html: The front-end interface for the application.
Feel free to connect with me on LinkedIn.
Contributions are welcome! Please feel free to submit a Pull Request.