Upload 2 files
Browse files- app.py +3 -3
- 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 |
-
|
18 |
-
add_bos_eos=
|
19 |
-
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
|