Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1600,7 +1600,7 @@ with gr.Blocks(theme=theme) as app:
|
|
1600 |
ilariatts_button.click(fn=ilariaTTS, inputs=[ilariatext, ilariaid], outputs=[record_button, input_audio0])
|
1601 |
|
1602 |
#with gr.Column():
|
1603 |
-
with gr.Accordion("
|
1604 |
#with gr.Row():
|
1605 |
|
1606 |
file_index1 = gr.Dropdown(
|
@@ -1631,59 +1631,49 @@ with gr.Blocks(theme=theme) as app:
|
|
1631 |
value="rmvpe",
|
1632 |
interactive=True,
|
1633 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1634 |
|
1635 |
animate_button.click(fn=mouth, inputs=[size, face, vc_output2, faces], outputs=[animation, preview])
|
1636 |
|
1637 |
-
crepe_hop_length = gr.Slider(
|
1638 |
-
minimum=1,
|
1639 |
-
maximum=512,
|
1640 |
-
step=1,
|
1641 |
-
label="Mangio-Crepe Hop Length. Higher numbers will reduce the chance of extreme pitch changes but lower numbers will increase accuracy. 64-192 is a good range to experiment with.",
|
1642 |
-
value=120,
|
1643 |
-
interactive=True,
|
1644 |
-
visible=False,
|
1645 |
-
)
|
1646 |
-
f0method0.change(fn=whethercrepeornah, inputs=[f0method0], outputs=[crepe_hop_length])
|
1647 |
-
filter_radius0 = gr.Slider(
|
1648 |
-
minimum=0,
|
1649 |
-
maximum=7,
|
1650 |
-
label=i18n(">=3则使用对harvest音高识别的结果使用中值滤波,数值为滤波半径,使用可以削弱哑音"),
|
1651 |
-
value=3,
|
1652 |
-
step=1,
|
1653 |
-
interactive=True,
|
1654 |
-
)
|
1655 |
-
resample_sr0 = gr.Slider(
|
1656 |
-
minimum=0,
|
1657 |
-
maximum=48000,
|
1658 |
-
label=i18n("后处理重采样至最终采样率,0为不进行重采样"),
|
1659 |
-
value=0,
|
1660 |
-
step=1,
|
1661 |
-
interactive=True,
|
1662 |
-
visible=False
|
1663 |
-
)
|
1664 |
-
rms_mix_rate0 = gr.Slider(
|
1665 |
-
minimum=0,
|
1666 |
-
maximum=1,
|
1667 |
-
label=i18n("输入源音量包络替换输出音量包络融合比例,越靠近1越使用输出包络"),
|
1668 |
-
value=0.21,
|
1669 |
-
interactive=True,
|
1670 |
-
)
|
1671 |
-
protect0 = gr.Slider(
|
1672 |
-
minimum=0,
|
1673 |
-
maximum=0.5,
|
1674 |
-
label=i18n("保护清辅音和呼吸声,防止电音撕裂等artifact,拉满0.5不开启,调低加大保护力度但可能降低索引效果"),
|
1675 |
-
value=0.33,
|
1676 |
-
step=0.01,
|
1677 |
-
interactive=True,
|
1678 |
-
)
|
1679 |
-
formanting = gr.Checkbox(
|
1680 |
-
value=bool(DoFormant),
|
1681 |
-
label="[EXPERIMENTAL] Formant shift inference audio",
|
1682 |
-
info="Used for male to female and vice-versa conversions",
|
1683 |
-
interactive=True,
|
1684 |
-
visible=True,
|
1685 |
-
)
|
1686 |
-
|
1687 |
formant_preset = gr.Dropdown(
|
1688 |
value='',
|
1689 |
choices=get_fshift_presets(),
|
|
|
1600 |
ilariatts_button.click(fn=ilariaTTS, inputs=[ilariatext, ilariaid], outputs=[record_button, input_audio0])
|
1601 |
|
1602 |
#with gr.Column():
|
1603 |
+
with gr.Accordion("Advanced Settings", open=False):
|
1604 |
#with gr.Row():
|
1605 |
|
1606 |
file_index1 = gr.Dropdown(
|
|
|
1631 |
value="rmvpe",
|
1632 |
interactive=True,
|
1633 |
)
|
1634 |
+
filter_radius0 = gr.Slider(
|
1635 |
+
minimum=0,
|
1636 |
+
maximum=7,
|
1637 |
+
label=i18n(">=3则使用对harvest音高识别的结果使用中值滤波,数值为滤波半径,使用可以削弱哑音"),
|
1638 |
+
value=3,
|
1639 |
+
step=1,
|
1640 |
+
interactive=True,
|
1641 |
+
)
|
1642 |
+
resample_sr0 = gr.Slider(
|
1643 |
+
minimum=0,
|
1644 |
+
maximum=48000,
|
1645 |
+
label=i18n("后处理重采样至最终采样率,0为不进行重采样"),
|
1646 |
+
value=0,
|
1647 |
+
step=1,
|
1648 |
+
interactive=True,
|
1649 |
+
visible=False
|
1650 |
+
)
|
1651 |
+
rms_mix_rate0 = gr.Slider(
|
1652 |
+
minimum=0,
|
1653 |
+
maximum=1,
|
1654 |
+
label=i18n("输入源音量包络替换输出音量包络融合比例,越靠近1越使用输出包络"),
|
1655 |
+
value=0.21,
|
1656 |
+
interactive=True,
|
1657 |
+
)
|
1658 |
+
protect0 = gr.Slider(
|
1659 |
+
minimum=0,
|
1660 |
+
maximum=0.5,
|
1661 |
+
label=i18n("保护清辅音和呼吸声,防止电音撕裂等artifact,拉满0.5不开启,调低加大保护力度但可能降低索引效果"),
|
1662 |
+
value=0.33,
|
1663 |
+
step=0.01,
|
1664 |
+
interactive=True,
|
1665 |
+
)
|
1666 |
+
formanting = gr.Checkbox(
|
1667 |
+
value=bool(DoFormant),
|
1668 |
+
label="[EXPERIMENTAL] Formant shift inference audio",
|
1669 |
+
info="Used for male to female and vice-versa conversions",
|
1670 |
+
interactive=True,
|
1671 |
+
visible=True,
|
1672 |
+
)
|
1673 |
+
|
1674 |
|
1675 |
animate_button.click(fn=mouth, inputs=[size, face, vc_output2, faces], outputs=[animation, preview])
|
1676 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1677 |
formant_preset = gr.Dropdown(
|
1678 |
value='',
|
1679 |
choices=get_fshift_presets(),
|