diff --git a/src/python/piper_train/preprocess.py b/src/python/piper_train/preprocess.py index 9c23d89..40c20c9 100644 --- a/src/python/piper_train/preprocess.py +++ b/src/python/piper_train/preprocess.py @@ -295,6 +295,9 @@ def phonemize_batch_espeak( for utt in utt_batch: try: + if args.tashkeel: + utt.text = tashkeel_run(utt.text) + _LOGGER.debug(utt) all_phonemes = phonemize_espeak(casing(utt.text), args.language) @@ -341,6 +344,9 @@ def phonemize_batch_text( for utt in utt_batch: try: + if args.tashkeel: + utt.text = tashkeel_run(utt.text) + _LOGGER.debug(utt) all_phonemes = phonemize_codepoints(casing(utt.text)) # Flatten