daswer123 / xtts-api-server

A simple FastAPI Server to run XTTSv2
MIT License
372 stars 85 forks source link

Is is possible to obtain output in a compressed format? #53

Open LostRuins opened 8 months ago

LostRuins commented 8 months ago

Hi, have tried your project out with success.

Apologies if this has been asked before. So far, I don't see any configuration options for audio compression when requesting TTS data from the server. Would it be possible to set output format (e.g. ogg/mp3) or bitrate when requesting a TTS? The current approach, while working, can result in larger files that take up more time and bandwidth to download.

Thanks!

cc: @henk717

henk717 commented 8 months ago

ogg doesn't have as good of a browser compatibility so mp3 would be better here