Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -75,7 +75,7 @@ def tts_fn(text, speaker, sdp_ratio, noise_scale, noise_scale_w, length_scale):
|
|
75 |
|
76 |
if __name__ == "__main__":
|
77 |
parser = argparse.ArgumentParser()
|
78 |
-
parser.add_argument("--model_dir", default="./logs/Taffy/
|
79 |
parser.add_argument("--config_dir", default="./configs/config.json", help="path of your config file")
|
80 |
parser.add_argument("--share", default=False, help="make link public")
|
81 |
parser.add_argument("-d", "--debug", action="store_true", help="enable DEBUG-LEVEL log")
|
@@ -112,14 +112,22 @@ if __name__ == "__main__":
|
|
112 |
with gr.Blocks() as app:
|
113 |
with gr.Row():
|
114 |
with gr.Column():
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
115 |
text = gr.TextArea(label="Text", placeholder="Input Text Here",
|
116 |
value="关注永雏塔菲喵,关注永雏塔菲谢谢喵!")
|
117 |
speaker = gr.Dropdown(choices=speakers, value=speakers[0], label='Speaker')
|
118 |
-
sdp_ratio = gr.Slider(minimum=0, maximum=1, value=0.2, step=0.1, label='
|
119 |
-
noise_scale = gr.Slider(minimum=0.1, maximum=1.5, value=0.6, step=0.1, label='
|
120 |
-
noise_scale_w = gr.Slider(minimum=0.1, maximum=1.4, value=0.8, step=0.1, label='
|
121 |
length_scale = gr.Slider(minimum=0.1, maximum=2, value=1, step=0.1, label='语速')
|
122 |
-
btn = gr.Button("
|
123 |
with gr.Column():
|
124 |
text_output = gr.Textbox(label="Message")
|
125 |
audio_output = gr.Audio(label="Output Audio")
|
|
|
75 |
|
76 |
if __name__ == "__main__":
|
77 |
parser = argparse.ArgumentParser()
|
78 |
+
parser.add_argument("--model_dir", default="./logs/Taffy/G_15800.pth", help="path of your model")
|
79 |
parser.add_argument("--config_dir", default="./configs/config.json", help="path of your config file")
|
80 |
parser.add_argument("--share", default=False, help="make link public")
|
81 |
parser.add_argument("-d", "--debug", action="store_true", help="enable DEBUG-LEVEL log")
|
|
|
112 |
with gr.Blocks() as app:
|
113 |
with gr.Row():
|
114 |
with gr.Column():
|
115 |
+
gr.Markdown(value="""
|
116 |
+
【AI塔菲】在线语音合成(Bert-Vits2)\n
|
117 |
+
作者:Xz乔希 https://space.bilibili.com/5859321\n
|
118 |
+
声音归属:永雏塔菲 https://space.bilibili.com/1265680561\n
|
119 |
+
Bert-VITS2项目:https://github.com/Stardust-minus/Bert-VITS2\n
|
120 |
+
使用本模型请严格遵守法律法规!\n
|
121 |
+
发布二创作品请遵守永雏塔菲二创守则规范!并标注本项目作者及链接喵~\n
|
122 |
+
""")
|
123 |
text = gr.TextArea(label="Text", placeholder="Input Text Here",
|
124 |
value="关注永雏塔菲喵,关注永雏塔菲谢谢喵!")
|
125 |
speaker = gr.Dropdown(choices=speakers, value=speakers[0], label='Speaker')
|
126 |
+
sdp_ratio = gr.Slider(minimum=0, maximum=1, value=0.2, step=0.1, label='语调调节')
|
127 |
+
noise_scale = gr.Slider(minimum=0.1, maximum=1.5, value=0.6, step=0.1, label='感情调节')
|
128 |
+
noise_scale_w = gr.Slider(minimum=0.1, maximum=1.4, value=0.8, step=0.1, label='音节发音长度调节')
|
129 |
length_scale = gr.Slider(minimum=0.1, maximum=2, value=1, step=0.1, label='语速')
|
130 |
+
btn = gr.Button("生成喵!", variant="primary")
|
131 |
with gr.Column():
|
132 |
text_output = gr.Textbox(label="Message")
|
133 |
audio_output = gr.Audio(label="Output Audio")
|