Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/xalpharax/edge-tts-gradio
Experimenting with Gradio
https://github.com/xalpharax/edge-tts-gradio
docker docker-compose docker-container docker-image dockerfile edge-tts gradio pyenv text-to-speech tts tts-engines
Last synced: 4 days ago
JSON representation
Experimenting with Gradio
- Host: GitHub
- URL: https://github.com/xalpharax/edge-tts-gradio
- Owner: xAlpharax
- License: agpl-3.0
- Created: 2024-11-28T00:06:13.000Z (2 months ago)
- Default Branch: master
- Last Pushed: 2024-12-13T13:11:27.000Z (about 2 months ago)
- Last Synced: 2024-12-13T13:19:21.993Z (about 2 months ago)
- Topics: docker, docker-compose, docker-container, docker-image, dockerfile, edge-tts, gradio, pyenv, text-to-speech, tts, tts-engines
- Language: Python
- Homepage:
- Size: 26.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# edge-tts-gradio
Gradio Interface for Text-To-Speech using Edge TTS. It has support for many languages and voices, including Romanian, and offers pretty great accuracy.
## Setup
Python `3.10.14` is used for this project. You can use `pyenv` to manage the python versions (I really recommend `pyenv`, in fact I will make a guide for it). I used Python for the server side script and Node.js for the client side since it works best with the async nature of edge-tts apparently.
```bash
pyenv install 3.10.14pyenv virtualenv edge-tts-gradio
pyenv activate edge-tts-gradiopip install -r requirements.txt
python app.py
```Now you can open the browser and go to `http://0.0.0.0:7860/` to see the Gradio Interface with Edge TTS available to use, you can also look at the API specification for it. `Ctrl + C` to stop the server. A simple API example is found under `./test_api` in JavaScript, you will need `npm` and `node`.
```bash
cd test_apinpm install
node test_tts_edge.js
```## Docker
You can also run the server in a docker container, you can build the image and run it with the following commands:
```bash
docker build -t edge-tts-gradio .docker run -d -p 7860:7860 --name edge-tts-gradio edge-tts-gradio
#when stopping the container
#docker stop edge-tts-gradio#when removing the container
#docker rm edge-tts-gradio#when removing the image
#docker rmi edge-tts-gradio
```Or use docker-compose:
```bash
docker-compose up -d#when stopping the container
#docker-compose down```
Remember you can always remove the `-d` flag for debugging purposes.
## Contributing
I'm actively supporting FOSS collaboration, so, if you feel like you can help in any way, file an issue in the *Issues* tab or submit a Pull Request and I will go through it.
## License
Copyright (C) xAlpharax
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License along with this program. If not, see https://www.gnu.org/licenses/.