Gregniuki commited on
Commit
4a238c0
·
1 Parent(s): 22f91ad

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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, 0, 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,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 = 1, noise_scale = 0.667, noise_scale_w = 0.8, auto_play=True):
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"