Vits-Server 🔥 ⚡ A VITS ONNX server designed for fast inference, supporting streaming and additional inference settings to enable model preference settings and optimize performance. 🧪 Experimental purposes only This project is for experimental purposes only. If you are looking for a production-ready TTS implementation, go to https://github.com/RVC-Boss/GPT-SoVITS Advantages 💪 [x] Long Voice Generation, Support…
⚡ A VITS ONNX server designed for fast inference, supporting streaming and additional inference settings to enable model
preference settings and optimize performance.
client = VITS("http://127.0.0.1:9557")
res = client.generate_voice(model_id="model_01", text="你好,世界!", speaker_id=0, audio_type="wav",
length_scale=1.0, noise_scale=0.5, noise_scale_w=0.5, auto_parse=True)
with open("output.wav", "wb") as f:
for chunk in res.iter_content(chunk_size=1024):
if chunk:
f.write(chunk)
Running 🏃
We recommend using a virtual environment to isolate the runtime environment. Because this project’s dependencies may
potentially disrupt your dependency library, we recommend using pipenv to manage the dependency package.
Config Server 🐚
Configuration is in .env, including the following fields:
评论