| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
parent directory.. | ||||
Text to Speech Converter using gTTS
This script provides a convenient interface for converting text into speech using the gTTS library. The text can be read in multiple languages, at different speeds, and with various localized accents. The script also includes advanced options for pre-processing the input text and customizing how it's tokenized before being sent to the gTTS API.
The following libraries are required to run the script:
pip install gttsAdditionally, the script uses built-in libraries like os.
Clone the Repository: Clone this repository to your local machine using:
git clone <repository-url>Install Dependencies: Navigate to the project directory and install the required packages:
pip install -r requirements.txtRun the Script: After cloning and installing dependencies, you can run the script directly:
python text_to_speech.pyCustomize the Script: You can modify the input text, language, speed, and other options directly in the script:
text_to_speech("Hello, welcome to the gTTS Python tutorial.", lang='en', slow=False)After running the script with the text "Hello, welcome to the gTTS Python tutorial.", the output file output.mp3 is generated.
| Back | FazBrowse Home | New Git URL |