miya3333 commited on
Commit
e3f6ffa
·
verified ·
1 Parent(s): dfbe110

Upload 2 files

Browse files
Files changed (2) hide show
  1. app.py +3 -3
  2. requirements.txt +2 -2
app.py CHANGED
@@ -14,9 +14,9 @@ def synthesize_speech(text):
14
  # テキストをトークンIDに変換
15
  sequence = text_to_sequence(
16
  text,
17
- hifi_gan.hparams.text_cleaners,
18
- add_bos_eos=hifi_gan.hparams.add_bos_eos,
19
- symbol_set=hifi_gan.hparams.symbol_set
20
  )
21
  # 系列をパディング
22
  batch = tacotron2.mods.encoder.pad_sequence_pre([torch.tensor(sequence)])
 
14
  # テキストをトークンIDに変換
15
  sequence = text_to_sequence(
16
  text,
17
+ tacotron2.hparams.text_cleaners,
18
+ add_bos_eos=tacotron2.hparams.add_bos_eos,
19
+ symbol_set=tacotron2.hparams.symbol_set
20
  )
21
  # 系列をパディング
22
  batch = tacotron2.mods.encoder.pad_sequence_pre([torch.tensor(sequence)])
requirements.txt CHANGED
@@ -1,4 +1,4 @@
1
  gradio
2
- speechbrain
3
  torch
4
- soundfile
 
1
  gradio
2
+ speechbrain==1.0.0
3
  torch
4
+ soundfile