espnet2.text.phoneme_tokenizer.Phonemizer
Less than 1 minute
espnet2.text.phoneme_tokenizer.Phonemizer
class espnet2.text.phoneme_tokenizer.Phonemizer(backend, word_separator: str | None = None, syllable_separator: str | None = None, phone_separator: str | None = ' ', strip=False, split_by_single_token: bool = False, **phonemizer_kwargs)
Bases: object
Phonemizer module for various languages.
This is wrapper module of https://github.com/bootphon/phonemizer. You can define various g2p modules by specifying options for phonemizer.
See available options: : https://github.com/bootphon/phonemizer/blob/master/phonemizer/phonemize.py#L32