ntt123 commited on
Commit
acbc346
1 Parent(s): ba54530

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -16,11 +16,11 @@ def download_assets():
16
  def text_to_speech(text):
17
  text = nat_normalize_text(text)
18
  mel = text2mel(
19
- text,
20
- "lexicon.txt",
21
- 0.2,
22
- "acoustic_latest_ckpt.pickle",
23
- "duration_latest_ckpt.pickle"
24
  )
25
  wave = mel2wave(mel, "config.json", "hk_hifi.pickle")
26
  return (wave * (2**15)).astype(np.int16)
 
16
  def text_to_speech(text):
17
  text = nat_normalize_text(text)
18
  mel = text2mel(
19
+ text,
20
+ "lexicon.txt",
21
+ 0.2,
22
+ "acoustic_latest_ckpt.pickle",
23
+ "duration_latest_ckpt.pickle",
24
  )
25
  wave = mel2wave(mel, "config.json", "hk_hifi.pickle")
26
  return (wave * (2**15)).astype(np.int16)