UNPKG

phonemize

Version:

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

13 lines (12 loc) 484 B
import { LanguageProcessor } from "../g2p"; declare class KoreanG2P implements LanguageProcessor { readonly id = "ko-g2p"; readonly name = "Korean G2P Processor"; readonly supportedLanguages: string[]; preProcess(text: string): string; predict(word: string, language?: string, pos?: string): string | null; addPronunciation(word: string, pronunciation: string): void; private decomposeRomajaSyllable; private processKorean; } export default KoreanG2P;