paddlespeech.t2s.frontend.mix_frontend module

class paddlespeech.t2s.frontend.mix_frontend.MixFrontend(g2p_model='pypinyin', phone_vocab_path=None, tone_vocab_path=None)[source]

Bases: object

Methods

get_input_ids

is_alphabet

is_chinese

is_other

split_by_lang

get_input_ids(sentence: str, merge_sentences: bool = False, get_tone_ids: bool = False, add_sp: bool = True, to_tensor: bool = True) Dict[str, List[Tensor]][source]
is_alphabet(char)[source]
is_chinese(char)[source]
is_other(char)[source]
split_by_lang(text: str) List[str][source]