Skip to content

sandeepkrc/text-to-speech

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Text to Speech Converter

This Python script converts the content of a text file into speech and saves the output as an MP3 file using Google's Text-to-Speech (gTTS) API.

Features

  • Reads text from a specified file and converts it into speech.
  • Saves the speech as an MP3 file.
  • Plays the MP3 file after saving.
  • Supports multiple languages (default is English).

Requirements

To use this script, you need to install the following Python packages:

  • gtts: Google's Text-to-Speech (gTTS) library for converting text to speech.

Install required dependencies

Install the required package using pip:

pip install gtts



### Summary of the README file:
1. **Introduction**: Describes the purpose of the project.
2. **Features**: Lists the key capabilities of the script.
3. **Requirements**: Explains the need for `gtts` and how to install it.
4. **Setup and Usage**: Provides step-by-step instructions on preparing the text file, configuring, and running the script.
5. **Function Documentation**: Includes the function parameters and an example of how to use the `text_to_speech` function.
6. **Notes**: Clarifies behavior across different operating systems.
7. **License**: Mentions licensing information.

This should provide a clear, user-friendly guide for anyone who wants to use or contribute to the project.

About

This program helps to change text file to speech.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages