From 100dd164e695c211dac25c465be4c17a6e955ab8 Mon Sep 17 00:00:00 2001 From: mrq Date: Tue, 10 Oct 2023 19:21:19 -0500 Subject: [PATCH] apply phoneme cleanup in inferencing as well --- vall_e/inference.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vall_e/inference.py b/vall_e/inference.py index e3701d2..0b9e5b9 100755 --- a/vall_e/inference.py +++ b/vall_e/inference.py @@ -13,7 +13,7 @@ from .utils import to_device from .config import cfg from .models import get_models from .engines import load_engines, deepspeed_available -from .data import get_phone_symmap, _load_quants +from .data import get_phone_symmap, _load_quants, _cleanup_phones if deepspeed_available: import deepspeed @@ -116,6 +116,7 @@ class TTS(): return text content = g2p.encode(text, language=language) + content = _cleanup_phones( content ) # ick try: phones = [""] + [ " " if not p else p for p in content ] + [""]