Skip to content

Welcome to the Text-to-Speech Converter program! This Python script allows you to convert text from a file into speech and save it as an MP3 file

Notifications You must be signed in to change notification settings

abdullah4tech/python-Text-To-Specch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

6 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Text-to-Speech Converter πŸ”Š

Welcome to the Text-to-Speech Converter program! This Python script allows you to convert text from a file into speech and save it as an MP3 file. It uses the gTTS (Google Text-to-Speech) library to perform the conversion.

Usage πŸš€

To use this program:

  1. Ensure you have Python and the gTTS library installed on your computer.
  2. Replace "your_text_file.txt" with the actual file path of the text you want to convert.

Running the Script

You can run the script as follows:

python text_to_speech.py

The script will read the text from the specified file, convert it to speech, and save it as an MP3 file. You will be notified if the file is saved successfully.

Prerequisites πŸ“‹

Before using this program, you need to have the following prerequisites:

  • Python: Make sure you have Python installed on your computer. You can download Python from Python's official website.

  • gTTS Library: Install the gTTS library using pip:

pip install gTTS

Error Handling 🚨

The program includes error handling to catch and report any issues during the file-saving process. If there are errors, you will see an error message.

Support πŸ“§

If you encounter any issues or have questions related to this program, please feel free to contact me.

Enjoy using the Text-to-Speech Converter! πŸŽ‰


The emojis have been added to various sections to make the README more engaging and user-friendly.

About

Welcome to the Text-to-Speech Converter program! This Python script allows you to convert text from a file into speech and save it as an MP3 file

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Languages