Skip to content

Commit 6a03690

Browse files
committed
🦠 Add ParalleWavegan to Auto module.
1 parent f89f346 commit 6a03690

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

tensorflow_tts/inference/auto_config.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
MelGANGeneratorConfig,
2525
MultiBandMelGANGeneratorConfig,
2626
Tacotron2Config,
27+
ParallelWaveGANGeneratorConfig,
2728
)
2829

2930
CONFIG_MAPPING = OrderedDict(
@@ -32,7 +33,8 @@
3233
("fastspeech2", FastSpeech2Config),
3334
("multiband_melgan_generator", MultiBandMelGANGeneratorConfig),
3435
("melgan_generator", MelGANGeneratorConfig),
35-
("tacotron2", Tacotron2Config)
36+
("tacotron2", Tacotron2Config),
37+
("parallel_wavegan_generator", ParallelWaveGANGeneratorConfig)
3638
]
3739
)
3840

tensorflow_tts/inference/auto_model.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
MelGANGeneratorConfig,
2525
MultiBandMelGANGeneratorConfig,
2626
Tacotron2Config,
27+
ParallelWaveGANGeneratorConfig,
2728
)
2829

2930
from tensorflow_tts.models import (
@@ -32,6 +33,7 @@
3233
TFMelGANGenerator,
3334
TFMBMelGANGenerator,
3435
TFTacotron2,
36+
TFParallelWaveGANGenerator,
3537
)
3638

3739

@@ -42,6 +44,7 @@
4244
(MultiBandMelGANGeneratorConfig, TFMBMelGANGenerator),
4345
(MelGANGeneratorConfig, TFMelGANGenerator),
4446
(Tacotron2Config, TFTacotron2),
47+
(ParallelWaveGANGeneratorConfig, TFParallelWaveGANGenerator)
4548
]
4649
)
4750

test/test_auto.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ def test_auto_processor(mapper_path):
5858
"./examples/multiband_melgan/conf/multiband_melgan.v1.yaml",
5959
"./examples/tacotron2/conf/tacotron2.v1.yaml",
6060
"./examples/tacotron2/conf/tacotron2.kss.v1.yaml",
61+
"./examples/parallel_wavegan/conf/parallel_wavegan.v1.yaml",
6162
]
6263
)
6364
def test_auto_model(config_path):

0 commit comments

Comments
 (0)