Update app.py
Browse files
app.py
CHANGED
@@ -37,6 +37,8 @@ def vc_fn(sid, input_audio, vc_transform, auto_f0,cluster_ratio, noise_scale):
|
|
37 |
print( cluster_ratio, auto_f0, noise_scale)
|
38 |
out_audio, out_sr = model.infer(sid, vc_transform, out_wav_path,
|
39 |
cluster_infer_ratio=cluster_ratio,
|
|
|
|
|
40 |
auto_predict_f0=auto_f0,
|
41 |
noice_scale=noise_scale
|
42 |
)
|
@@ -53,8 +55,6 @@ with app:
|
|
53 |
spks = list(model.spk2id.keys())
|
54 |
sid = gr.Dropdown(label="音色", choices=["mononobe"], value="mononobe")
|
55 |
vc_input3 = gr.Audio(label="上传音频(长度小于45秒)")
|
56 |
-
examples = [["./raw/One Last Kiss.wav", 0, False]]
|
57 |
-
cache_examples=True
|
58 |
vc_transform = gr.Number(label="变调(整数,可以正负,半音数量,升高八度就是12)", value=0)
|
59 |
cluster_ratio = gr.Number(label="聚类模型混合比例,0-1之间,默认为0不启用聚类,能提升音色相似度,但会导致咬字下降(如果使用建议0.5左右)", value=0)
|
60 |
auto_f0 = gr.Checkbox(label="自动f0预测,配合聚类模型f0预测效果更好,会导致变调功能失效(仅限转换语音,歌声不要勾选此项会究极跑调)", value=False)
|
|
|
37 |
print( cluster_ratio, auto_f0, noise_scale)
|
38 |
out_audio, out_sr = model.infer(sid, vc_transform, out_wav_path,
|
39 |
cluster_infer_ratio=cluster_ratio,
|
40 |
+
examples = [["./raw/One Last Kiss.wav", 0, False]],
|
41 |
+
cache_examples=True,
|
42 |
auto_predict_f0=auto_f0,
|
43 |
noice_scale=noise_scale
|
44 |
)
|
|
|
55 |
spks = list(model.spk2id.keys())
|
56 |
sid = gr.Dropdown(label="音色", choices=["mononobe"], value="mononobe")
|
57 |
vc_input3 = gr.Audio(label="上传音频(长度小于45秒)")
|
|
|
|
|
58 |
vc_transform = gr.Number(label="变调(整数,可以正负,半音数量,升高八度就是12)", value=0)
|
59 |
cluster_ratio = gr.Number(label="聚类模型混合比例,0-1之间,默认为0不启用聚类,能提升音色相似度,但会导致咬字下降(如果使用建议0.5左右)", value=0)
|
60 |
auto_f0 = gr.Checkbox(label="自动f0预测,配合聚类模型f0预测效果更好,会导致变调功能失效(仅限转换语音,歌声不要勾选此项会究极跑调)", value=False)
|