Plachtaa / VITS-fast-fine-tuning

This repo is a pipeline of VITS finetuning for fast speaker adaptation TTS, and many-to-many voice conversion
Apache License 2.0
4.73k stars 711 forks source link

您好,请问如果想整成像这样的网页端该怎么搞? #161

Open whh717 opened 1 year ago

whh717 commented 1 year ago

https://huggingface.co/spaces/Plachta/VITS-Umamusume-voice-synthesizer 这样就不用每次都在本地启动了,也能分享给别人。

Plachtaa commented 1 year ago

用gradio库写一个UI,如果不会的话就把网页版duplicate下来,然后把模型和config换掉就行了,格式是通用的

wling-art commented 1 year ago

我觉得你可以尝试把代码git下来,然后构建完将VC_inference.py的最后一行修改,为app.launch()添加参数,如 app.launch(share=True, server_port=8342, server_name="0.0.0.0") share:bool 是否分享,会有分享链接在控制台xxx.gradio.live server_port:int 端口,不给参数则为默认的7860 server_name:str 地址,建议0.0.0.0,可以映射到公网ip

mzltest commented 1 year ago

也可以把安装完跑完一遍整个代码传到spaceVC_inference.py作为入口点,需要注意的是需要把monoalign那个东西也要push上去,同时保证你编译时的python版本与space的python版本相同(space那边可以readme指定版本)