Downloads · 30 days
0
pantelnm/OpenSpeech-TTS
OpenSpeech-TTS is a text-to-speech model from pantelnm. Use it when you need text read aloud. The card lists the license as apache-2.0.
<a id="readme-top"</a <br / <div align="left"
Downloads · 30 days
0
Access
Public
Updated Oct 10, 2024
Repo size
—
Likes
0
Public
Click a slice to open those files.
.md5 KB · 50%
From the Hugging Face model README
<a id="readme-top"></a>
<!-- PROJECT LOGO --> <br /> <div align="left"> <h3 align="center">OpenSpeech TTS API</h3> <p align="center"> A simple and effective Text-to-Speech API compatible with OpenAI's endpoint <br /> <a href="https://github.com/PantelisDeveloping"><strong>Explore the docs »</strong></a> <br /> <br /> <a href="https://github.com/PantelisDeveloping">View Demo</a> · <a href="https://github.com/PantelisDeveloping">Report Bug</a> · <a href="https://github.com/PantelisDeveloping>Request Feature</a> </p> </div> <!-- ABOUT THE PROJECT -->OpenSpeech TTS is a user-friendly and efficient Text-to-Speech (TTS) API designed to seamlessly integrate with OpenAI's powerful text-to-speech capabilities. This project aims to provide developers with a simple and effective tool to convert text into natural-sounding speech, making it ideal for various applications such as voice assistants, audiobooks, and accessibility tools.
Key Features:
Compatibility with OpenAI's API: Leverages OpenAI's advanced text-to-speech models to deliver high-quality audio output. Ease of Use: Provides a straightforward interface for developers to integrate TTS functionality into their projects. Efficiency: Optimized for performance to ensure smooth and responsive TTS generation. No need for GPU.
<p align="right">(<a href="#readme-top">back to top</a>)</p>We used Python + Flask + Gevent WSGI for depolyment and Edge TTS for the TTS support.
<p align="right">(<a href="#readme-top">back to top</a>)</p> <!-- GETTING STARTED -->This is how you will succesfully run your OpenSpeech TTS Server:
This is an example of how to list things you need to use the software and how to install them. Python 3.10 + above with the following libarires in a virtual environment:
pip install Flask
pip install edge-tts
pip install cryptography
pip install gevent
pip install art
Below is a step by step installation guide to run succesfuly the TTS Server.
git clone https://github.com/github_username/repo_name.git
python -m venv /path/to/new/virtual/environment
source <venv>/bin/activate
cd ./openspeech-tts/main
python api.py
Enter API Key: ....
Enter Port: ....
You can use the TTS API in the same way you use the OpenAI Text-to-Speech:
curl http://localhost:5000/v1/audio/speech \
-H "Authorization: Bearer API-KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "tts-1",
"input": "Today is a wonderful day to build something people love!",
"voice": "alloy"
}' \
--output speech.mp3
For the request example, please refer to the Sample Request Curl
<p align="right">(<a href="#readme-top">back to top</a>)</p> <!-- ROADMAP -->See the open issues for a full list of proposed features (and known issues).
<p align="right">(<a href="#readme-top">back to top</a>)</p> <!-- CONTRIBUTING -->Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
git checkout -b PantelisDeveloping/openspeech-tts)git commit -m 'Committing changes')git push origin PantelisDeveloping/openspeech-tts)Distributed under the MIT License. See LICENSE.txt for more information.
Pantelis
Project Link: https://github.com/PantelisDeveloping/openspeech-tts
<p align="right">(<a href="#readme-top">back to top</a>)</p> --- license: apache-2.0 ---