Skip to content

NitroBrain/easy_speak

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.


PyPI Downloads

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages