Skip to content

Commit 0a677c4

Browse files
committed
✋ Add hifigan to autoconfig and TFautomodel.
1 parent 212c84f commit 0a677c4

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

tensorflow_tts/inference/auto_config.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
FastSpeech2Config,
2424
MelGANGeneratorConfig,
2525
MultiBandMelGANGeneratorConfig,
26+
HifiGANGeneratorConfig,
2627
Tacotron2Config,
2728
ParallelWaveGANGeneratorConfig,
2829
)
@@ -33,6 +34,7 @@
3334
("fastspeech2", FastSpeech2Config),
3435
("multiband_melgan_generator", MultiBandMelGANGeneratorConfig),
3536
("melgan_generator", MelGANGeneratorConfig),
37+
("hifigan_generator", HifiGANGeneratorConfig),
3638
("tacotron2", Tacotron2Config),
3739
("parallel_wavegan_generator", ParallelWaveGANGeneratorConfig)
3840
]

tensorflow_tts/inference/auto_model.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
FastSpeech2Config,
2424
MelGANGeneratorConfig,
2525
MultiBandMelGANGeneratorConfig,
26+
HifiGANGeneratorConfig,
2627
Tacotron2Config,
2728
ParallelWaveGANGeneratorConfig,
2829
)
@@ -32,18 +33,20 @@
3233
TFFastSpeech2,
3334
TFMelGANGenerator,
3435
TFMBMelGANGenerator,
36+
TFHifiGANGenerator,
3537
TFTacotron2,
3638
TFParallelWaveGANGenerator,
3739
)
3840

3941

4042
TF_MODEL_MAPPING = OrderedDict(
4143
[
42-
(FastSpeechConfig, TFFastSpeech),
4344
(FastSpeech2Config, TFFastSpeech2),
45+
(FastSpeechConfig, TFFastSpeech),
4446
(MultiBandMelGANGeneratorConfig, TFMBMelGANGenerator),
4547
(MelGANGeneratorConfig, TFMelGANGenerator),
4648
(Tacotron2Config, TFTacotron2),
49+
(HifiGANGeneratorConfig, TFHifiGANGenerator),
4750
(ParallelWaveGANGeneratorConfig, TFParallelWaveGANGenerator)
4851
]
4952
)

0 commit comments

Comments
 (0)