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.
To install easy_speak, run:
pip install easy_speakFor local development, install it in editable mode:
pip install -e .from easy_speak import easy_speak
# Convert text to speech and play it
easy_speak("Hello, welcome to easy_speak!")easy_speak("Hola, bienvenido a easy_speak!", lang="es")Converts the given text into speech and plays it immediately.
text(str): The text to be converted into speech.lang(str, optional): The language code (default is"en").
None (plays the speech instantly).
Contributions are welcome! To contribute:
- Fork the repository.
- Create a new branch:
git checkout -b feature-name
- Make your changes and commit them:
git commit -m "Add new feature" - Push the changes:
git push origin feature-name
- Open a pull request.
Feel free to report issues and suggest improvements!
MIT License.