Spaces:
Running
Running
adjust speaking rate range
Browse files
app.py
CHANGED
@@ -40,7 +40,7 @@ def tts_inference(
|
|
40 |
args_list += ["--speaker_name_2", None]
|
41 |
args_list += ["--text", input_text]
|
42 |
args_list += ["--mode","single"]
|
43 |
-
args_list += ["--duration_control",str(float(duration))]
|
44 |
args_list += ["--output_dir", "result"]
|
45 |
args_list += ["--log_level", "debug"]
|
46 |
|
@@ -72,7 +72,7 @@ def tc_inference(
|
|
72 |
args_list += ["--alpha", str(float(confusion_degree))]
|
73 |
args_list += ["--text", input_text]
|
74 |
args_list += ["--mode","single"]
|
75 |
-
args_list += ["--duration_control",str(float(duration))]
|
76 |
args_list += ["--output_dir", "result"]
|
77 |
args_list += ["--log_level", "debug"]
|
78 |
|
@@ -105,12 +105,12 @@ tts_demo_inputs = [
|
|
105 |
value="Cori Samuel"
|
106 |
),
|
107 |
gr.Slider(
|
108 |
-
1,
|
109 |
-
|
110 |
value=1,
|
111 |
-
step=0.
|
112 |
label="Speaking Rate",
|
113 |
-
info="As the step number increases, the speaking rate will be
|
114 |
)
|
115 |
]
|
116 |
|
@@ -143,12 +143,12 @@ tc_demo_inputs = [
|
|
143 |
info="As the step number increases, the generated voice will be more similar to speaker 2.",
|
144 |
),
|
145 |
gr.Slider(
|
146 |
-
1,
|
147 |
-
|
148 |
value=1,
|
149 |
-
step=0.
|
150 |
label="Speaking Rate",
|
151 |
-
info="As the step number increases, the speaking rate will be
|
152 |
)
|
153 |
]
|
154 |
|
|
|
40 |
args_list += ["--speaker_name_2", None]
|
41 |
args_list += ["--text", input_text]
|
42 |
args_list += ["--mode","single"]
|
43 |
+
args_list += ["--duration_control",str(float(2.05-duration))]
|
44 |
args_list += ["--output_dir", "result"]
|
45 |
args_list += ["--log_level", "debug"]
|
46 |
|
|
|
72 |
args_list += ["--alpha", str(float(confusion_degree))]
|
73 |
args_list += ["--text", input_text]
|
74 |
args_list += ["--mode","single"]
|
75 |
+
args_list += ["--duration_control",str(float(2.05-duration))]
|
76 |
args_list += ["--output_dir", "result"]
|
77 |
args_list += ["--log_level", "debug"]
|
78 |
|
|
|
105 |
value="Cori Samuel"
|
106 |
),
|
107 |
gr.Slider(
|
108 |
+
0.1,
|
109 |
+
2,
|
110 |
value=1,
|
111 |
+
step=0.05,
|
112 |
label="Speaking Rate",
|
113 |
+
info="As the step number increases, the speaking rate will be faster.",
|
114 |
)
|
115 |
]
|
116 |
|
|
|
143 |
info="As the step number increases, the generated voice will be more similar to speaker 2.",
|
144 |
),
|
145 |
gr.Slider(
|
146 |
+
0.1,
|
147 |
+
2,
|
148 |
value=1,
|
149 |
+
step=0.05,
|
150 |
label="Speaking Rate",
|
151 |
+
info="As the step number increases, the speaking rate will be faster.",
|
152 |
)
|
153 |
]
|
154 |
|