We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 005c1a4 commit adafbffCopy full SHA for adafbff
tensorflow_tts/processor/baker.py
@@ -545,6 +545,10 @@ class BakerProcessor(BaseProcessor):
545
target_rate: int = 24000
546
speaker_name: str = "baker"
547
548
+ def __post_init__(self):
549
+ super().__post_init__()
550
+ self.pinyin_parser = self.get_pinyin_parser()
551
+
552
def create_items(self):
553
items = []
554
if self.data_dir:
@@ -565,7 +569,6 @@ def create_items(self):
565
569
[" ".join(phonemes), wav_path, utt_id, self.speaker_name]
566
570
)
567
571
self.items = items
568
- self.pinyin_parser = self.get_pinyin_parser()
572
573
def get_phoneme_from_char_and_pinyin(self, chn_char, pinyin):
574
# we do not need #4, use sil to replace it
0 commit comments