Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -135,12 +135,12 @@ async def main(
|
|
135 |
onnx_model = onnx_models
|
136 |
model, config = load_onnx(onnx_model, sess_options, providers)
|
137 |
print("nuber of speakers = ", config["num_speakers"])
|
138 |
-
print("
|
139 |
-
rate = speed_slider.value
|
140 |
-
|
141 |
-
noise_scale_w = noise_scale_w_slider.value
|
142 |
auto_play = play.value
|
143 |
-
audio = inferencing(model, config, sid, text_input.value, speed_slider
|
144 |
temp_audio_file = tempfile.NamedTemporaryFile(delete=False, suffix=".mp3")
|
145 |
audio.export(temp_audio_file.name, format="mp3")
|
146 |
|
|
|
135 |
onnx_model = onnx_models
|
136 |
model, config = load_onnx(onnx_model, sess_options, providers)
|
137 |
print("nuber of speakers = ", config["num_speakers"])
|
138 |
+
print("speaker", speaker)
|
139 |
+
# rate = speed_slider.value
|
140 |
+
# noise_scale = noise_scale_slider.value
|
141 |
+
# noise_scale_w = noise_scale_w_slider.value
|
142 |
auto_play = play.value
|
143 |
+
audio = inferencing(model, config, sid, text_input.value, speed_slider, noise_scale_slider, noise_scale_w_slider, auto_play)
|
144 |
temp_audio_file = tempfile.NamedTemporaryFile(delete=False, suffix=".mp3")
|
145 |
audio.export(temp_audio_file.name, format="mp3")
|
146 |
|