Files
ChatTTS/tools/normalizer/en.py
T
github-actions[bot] 93db24b4b2 chore(format): run black on main (#443)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-06-25 17:22:13 +09:00

13 lines
336 B
Python

from typing import Callable
from functools import partial
def normalizer_en_nemo_text() -> Callable[[str], str]:
from nemo_text_processing.text_normalization.normalize import Normalizer
return partial(
Normalizer(input_case="cased", lang="en").normalize,
verbose=False,
punct_post_process=True,
)