Skip to content

JimmyVS/Text-To-Speech

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Text To Speech

License Python pyttsx3

Description

This Python script utilizes the pyttsx3 library to create a simple Text-to-Speech (TTS) program. The program allows customization of speech output by providing parameters such as text, speech rate, volume, and voice gender.

Features

  • Text-to-Speech functionality
  • Adjustable speech rate and volume
  • Selection of voice gender

Usage

  1. Clone the repository:

    git clone https://github.com/yourusername/text-to-speech.git
  2. Install required dependencies:

    pip install pyttsx3
  3. Run the program:

    python text_to_speech.py

Example

# Example usage
SpeakText("Hello, world!", 1, 1, 0)

Configuration

  • command: The text to be converted to speech.
  • Rate: Adjustment to the speech rate.
  • Volume: Volume level of the speech.
  • Gender: Voice gender index (0 for male, 1 for female).

License

This project is licensed under the MIT License - see the LICENSE file for details.

I hope you find this helpful! Happy coding!

About

Simple Python script using pyttsx3 for Text to Speech conversion. Customize speech rate, volume, and voice gender.

Topics

Resources

License

Stars

Watchers

Forks

Languages