From ce3d92955bf09322dd3cfe7df2c570edbf2a8648 Mon Sep 17 00:00:00 2001 From: Michael Hansen Date: Tue, 12 Sep 2023 14:12:43 -0500 Subject: [PATCH] Add --tashkeel --- src/python/piper_train/preprocess.py | 6 ++++++ 1 file changed, 6 insertions(+) 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