Files
ChatTTS/examples/api
源文雨 e675a593e2 optimize: drop seed context & add text temps
- add param `manual_seed`
- add missing params of refine_text
2024-07-31 16:53:36 +08:00
..
2024-07-06 00:39:47 +09:00
2024-07-06 00:39:47 +09:00

Generating voice with ChatTTS via API

Install requirements

Install FastAPI and requests:

pip install -r examples/api/requirements.txt

Run API server

fastapi dev examples/api/main.py --host 0.0.0.0 --port 8000

Generate audio using requests

python examples/api/client.py

mp3 audio files will be saved to the output directory.