This is a simple Python application that converts text written in Hindi into an MP3 audio file using the gTTS (Google Text-to-Speech) library. The graphical user interface (GUI) is built using the Tkinter library, providing an easy-to-use interface for text input and conversion.
The application provides the following features:
-
Select Text File: Click the "Select Text File" button to choose a text file with a ".txt" extension. The contents of the selected file will be displayed in the text entry widget.
-
Input Text: You can also directly input Hindi text in the text entry widget.
-
Convert to MP3: After providing the input text, click the "Convert to MP3" button to start the conversion process. You will be prompted to choose a destination path to save the converted MP3 file.
-
Status Updates: The status label will provide information about the selected file (if applicable) and any errors that may occur during the conversion process.
-
Conversion Time: The counter label will display the time taken for the conversion process.
The application requires the following dependencies to be installed:
- Python (version 3.x)
- Tkinter (usually included with Python)
- gTTS (Google Text-to-Speech) library
You can install the required packages using pip:
pip install gTTS-
Clone the repository to your local machine.
-
Navigate to the project directory.
-
Run the Python script
text_to_speech_hindi_converter.py. -
The graphical user interface (GUI) window will appear.
-
Follow the instructions mentioned in the "How it Works" section above.
Give this text-to-speech converter a try, and have fun experimenting with the application. We hope it proves to be a helpful tool for your Hindi text-to-speech needs. If you have any questions or encounter any difficulties, don't hesitate to reach out for support.
Detailed article about the Text-to-Speech Converter can be found here.
Happy converting! 🎉