Update gptsovits.py to avoid slow api performance #145
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
python api.py -s SoVITS_weights/四爷讲AI.pth -g GPT_weights/四爷讲AI.ckpt -dr "/Users/leosyzhang/sourcecode/ai/aivoice/GPT-SoVITS/ReferenceWav/四爷/说话-小桂子这一身的才华,去哪儿都会被埋没.wav" -dt "小桂子这一身的才华,去哪儿都会被埋没" -dl "zh"
但是实测发现通过api启动gptsovits的方式性能非常的慢。可能是因为我把所有东西都部署到一部机器上的原因
ollama + funasr + fay + gptsovits
然后访问gptsovits的tts的界面,确保gptsovits能正常使用
然后在fay的环境里面pip install gradio_client,通过gradio client的方式进行tts合成,性能会快很多,因为这种方式生成的语音文件都是本地的临时文件,减少了网络调用,性能会快一点,该方式不通用,但是可以个人demo