Gregniuki commited on
Commit
67e1650
·
1 Parent(s): 9f4c95a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -331,8 +331,8 @@ def audio_float_to_int16(
331
 
332
  def inferencing(model, config, sid, line, length_scale, noise_scale, noise_scale_w, auto_play=True):
333
  audios = []
334
- # if config["phoneme_type"] == "PhonemeType.ESPEAK":
335
- # config["phoneme_type"] = "espeak"
336
  text = phonemize(config, line)
337
  for phonemes in text:
338
  phoneme_ids = phonemes_to_ids(config, phonemes)
 
331
 
332
  def inferencing(model, config, sid, line, length_scale, noise_scale, noise_scale_w, auto_play=True):
333
  audios = []
334
+ if config["phoneme_type"] == "PhonemeType.ESPEAK":
335
+ config["phoneme_type"] = "espeak"
336
  text = phonemize(config, line)
337
  for phonemes in text:
338
  phoneme_ids = phonemes_to_ids(config, phonemes)