/speech-ai

A Python package that generates conversational speech from text using a combination of Generative AI models and various text-to-speech engines, enabling applications to produce dynamic and contextually aware spoken responses.

Primary LanguagePythonApache License 2.0Apache-2.0

SpeechAI 🔉 - Generate conversational speech!

Report a Bug · Request a Feature · Ask a Question

Release Downloads License codecov Open Source Helpers

CI CD CodeQL

Code style: black Imports: isort Imports: isort Imports: isort Imports: isort

What is it?

SpeechAI 🔈 is a Python package which empowers you to receive vocal responses directly from LLM with few lines of code. Its flexibility plays nice with any LLM and voice tools out there (online and offline), making it easy integrate it into your own projects.

Just install it, import the desired LLM and TTS from SpeechAI. Once done, you can query the model with your question and promptly receive an audio response, ready for download. As easy as that!

Here you can find a couple of examples:

  • SpeechAI with OpenAI: Open In Colab
  • SpeechAI with Cohere: Open In Colab

Install

The source code is currently hosted on GitHub at: https://github.com/nicolasebastianelli/speech-ai

Binary installers for the latest released version are available at the Python Package Index (PyPI).

# PyPI
pip install speechai

The list of changes to speechai between each release can be found here. For full details, see the commit logs at https://github.com/nicolasebastianelli/speech-ai/commits/main.

Contributing

First off, thanks for taking the time to contribute! Contributions are what makes the open-source community such an amazing place to learn, inspire, and create. Any contributions you make will benefit everybody else and are greatly appreciated.

Please follow the contributing guidelines and try to create bug reports that are:

  • Reproducible. Include steps to reproduce the problem.
  • Specific. Include as much detail as possible: which version, what environment, etc.
  • Unique. Do not duplicate existing opened issues.
  • Scoped to a Single Bug. One bug per report.

Please adhere to this project's code of conduct.

Support

Reach out to the maintainer at one of the following places:

License

This project is licensed under the Apache-2.0 license.

See LICENSE for more information.

Sustain us

"Buy Me A Coffee"