mirror of
https://github.com/2noise/ChatTTS.git
synced 2026-08-29 02:10:59 +08:00
93db24b4b2
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
13 lines
336 B
Python
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,
|
|
)
|