Skip to main content

Effortless and powerful text-to-speech conversion for Python applications.

Project description

easy_speak

easy_speak is a lightweight and efficient text-to-speech (TTS) package that allows you to convert text into speech and play it instantly without saving audio files. It provides a simple way to integrate speech synthesis into Python applications.


Installation

To install easy_speak, run:

pip install easy_speak

For local development, install it in editable mode:

pip install -e .

Usage

Basic Example

from easy_speak import easy_speak

# Convert text to speech and play it
easy_speak("Hello, welcome to easy_speak!")

Change Language

easy_speak("Hola, bienvenido a easy_speak!", lang="es")

Function Reference

easy_speak(text, lang="en")

Converts the given text into speech and plays it immediately.

Parameters:

  • text (str): The text to be converted into speech.
  • lang (str, optional): The language code (default is "en").

Returns:

None (plays the speech instantly).


Contributing

Contributions are welcome! To contribute:

  1. Fork the repository.
  2. Create a new branch:
    git checkout -b feature-name
    
  3. Make your changes and commit them:
    git commit -m "Add new feature"
    
  4. Push the changes:
    git push origin feature-name
    
  5. Open a pull request.

Feel free to report issues and suggest improvements!


License

MIT License.

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

easy_speak-0.1.1.tar.gz (3.3 kB view details)

Uploaded Source

Built Distribution

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

easy_speak-0.1.1-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: easy_speak-0.1.1.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.4

File hashes

Hashes for easy_speak-0.1.1.tar.gz
Algorithm Hash digest
SHA256 0550542e709a83f69a8e69b91136a888d28a927b9e0fa4b91b70cc3c64e6dd66
MD5 d737546950c147a7cb5df2d3fa1e6b6c
BLAKE2b-256 e9e2a3887c62d82fc248f55b24c8854d8b871b44b75865564381277752a8dde1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: easy_speak-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 3.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.4

File hashes

Hashes for easy_speak-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 20b167e5a1443d7db909763d92c84a96f841de29db5f9b0a6d102cc05edb839e
MD5 9dd4ffd9d807d6330c44c95f74499928
BLAKE2b-256 9e896dcdef5b65a02034987f590faad51687eec7a175ef6d136eddd8eb3c5bcd

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