UNPKG

phonemize

Version:

Fast phonemizer with rule-based G2P prediction. Pure JavaScript implementation.

10 lines (9 loc) 392 B
/** * Chinese text normalization for preProcess: converts Arabic digits and * common typographic forms into their spoken Chinese characters so the * downstream G2P (pinyin-pro) can read them. * * Outputs Han characters; works regardless of the surrounding text's * dialect, since pinyin-pro covers Mandarin readings. */ export declare function expandChineseText(text: string): string;