Skip to main content

Simple text-to-speech converter with multiple languages and voices

Project description

Text-to-Speech (TTS) Simple (by HMCorp)

This repository provides a simple implementation of a Text-to-Speech (TTS) system. It allows users to generate speech audio files (e.g., .wav) from text input. The project is designed to be lightweight and easy to use.

Features

  • Convert text input into .wav audio files.
  • Cross-platform support for macOS and Windows.
  • Easy setup and usage.

Requirements

  • Python 3.8 or higher
  • pip (Python package manager)

Installation

Using pip

  1. Install Python (if not already installed):

    • On macOS:
      brew install python
      
    • On Windows: Download and install Python from python.org. Ensure you check the box to add Python to your PATH during installation.
  2. Install the package:

    pip install tts-simple
    
  3. Install FFmpeg for .wav file generation:

    • On macOS:
      brew install ffmpeg
      
    • On Windows: Download and install FFmpeg from FFmpeg.org. Add the FFmpeg binary to your system PATH.

Usage

  1. Run the script:

    python tts_simple.py --text "Hello, world!" --output output.wav
    

    Replace "Hello, world!" with your desired text and output.wav with your desired output file name.

  2. Example:

    python tts_simple.py --text "This is a test." --output test.wav
    

Dependencies

The project uses the following Python libraries:

  • gTTS (Google Text-to-Speech)
  • pydub (for audio processing)
  • ffmpeg (for .wav file generation)

Install these dependencies via:

pip install gTTS pydub

Notes

  • Ensure FFmpeg is correctly installed and added to your PATH for .wav file generation.
  • The script is designed for educational purposes and may require additional tuning for production use.

License

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

Contributing

Contributions are welcome! Feel free to open issues or submit pull requests.

Contact

For questions or support, please contact [apavlenko@hmcorp.fund].

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tts_simple-0.1.1.tar.gz (5.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tts_simple-0.1.1-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

File details

Details for the file tts_simple-0.1.1.tar.gz.

File metadata

  • Download URL: tts_simple-0.1.1.tar.gz
  • Upload date:
  • Size: 5.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for tts_simple-0.1.1.tar.gz
Algorithm Hash digest
SHA256 0fe484302ea2ef45b23f99dfaa26b8ee740c8d017ea3dbe3b107ab0bbe34c57b
MD5 d624812c1f1debcdedc9f99e24efd7e5
BLAKE2b-256 0a921e1a3b8452045a8ef8d9cdced1d8fd0a0e36180a9bf010df8431d4c73e9d

See more details on using hashes here.

File details

Details for the file tts_simple-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: tts_simple-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 5.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for tts_simple-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e2964d52014043237781ebed50e249bc7370d8cd31402c7ea844dbc8e5dcbfad
MD5 b42d282e4875e425646dec5bc169b58f
BLAKE2b-256 e13cd4df6bafc009493a719aa724b61cbeeae0e4cf11c368ec57388134ab4aa0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page