Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -162,7 +162,7 @@ async def main(
|
|
162 |
# noise_scale = noise_scale_slider.value
|
163 |
# noise_scale_w = noise_scale_w_slider.value
|
164 |
auto_play = play
|
165 |
-
audio = inferencing(model, config,
|
166 |
temp_dir = tempfile.mkdtemp()
|
167 |
|
168 |
# Create a temporary directory to store the audio files
|
@@ -323,7 +323,7 @@ def audio_float_to_int16(
|
|
323 |
audio_norm = audio_norm.astype("int16")
|
324 |
return audio_norm
|
325 |
|
326 |
-
def inferencing(model, config, sid, line, length_scale
|
327 |
audios = []
|
328 |
if config["phoneme_type"] == "PhonemeType.ESPEAK":
|
329 |
config["phoneme_type"] = "espeak"
|
|
|
162 |
# noise_scale = noise_scale_slider.value
|
163 |
# noise_scale_w = noise_scale_w_slider.value
|
164 |
auto_play = play
|
165 |
+
audio = inferencing(model, config, 1, text_input, speed_slider, noise_scale_slider, noise_scale_w_slider, auto_play)
|
166 |
temp_dir = tempfile.mkdtemp()
|
167 |
|
168 |
# Create a temporary directory to store the audio files
|
|
|
323 |
audio_norm = audio_norm.astype("int16")
|
324 |
return audio_norm
|
325 |
|
326 |
+
def inferencing(model, config, sid, line, length_scale, noise_scale, noise_scale_w, auto_play=True):
|
327 |
audios = []
|
328 |
if config["phoneme_type"] == "PhonemeType.ESPEAK":
|
329 |
config["phoneme_type"] = "espeak"
|