espnet3.systems.f5tts.src.pinyin.f5_pinyin_g2p
Less than 1 minute
espnet3.systems.f5tts.src.pinyin.f5_pinyin_g2p
espnet3.systems.f5tts.src.pinyin.f5_pinyin_g2p(text: str) → List[str]
ESPnet-style g2p wrapper: a single string -> list of F5 pinyin tokens.
- Parameters:text – One raw transcript.
- Returns: The token list for
text.
Example
>>> f5_pinyin_g2p("hi")
['h', 'i']NOTE
Exists because ESPnet’s g2p contract is one string in, one token list out, whereas convert_char_to_pinyin() is batch-shaped. Registered as g2p_type="f5_pinyin" by register_f5_pinyin_g2p().
