Deploy edge-tts with docker.
You can directly use docker image:
docker run -p 8088:8088 herberthe0229/edge-tts-server
First, you need to setup python environment.
Then, run the following commands:
- install dependencies:
yarn install
- build scripts:
yarn build
- create python venv:
python3 -m venv .venv
- activate venv:
source .venv/bin/activate
- install
edge-tts
:pip3 install edge-tts
- run server:
yarn serve
Method | Path | Query | Description |
---|---|---|---|
GET | /voices |
search (optional) |
Get all supported voices |
GET | /tts |
text , voice (required) |
Convert text to speech |
GET | /clean |
secret (required) |
Clean the exised mp3 files |
GPL-3.0 © Herbert He