PyniniCorpusGenerator#

class montreal_forced_aligner.g2p.generator.PyniniCorpusGenerator(**kwargs)[source]#

Bases: PyniniGenerator, TextCorpusMixin, TopLevelMfaWorker

Top-level worker for generating pronunciations from a corpus and a Pynini G2P model

See also

PyniniGenerator

For Pynini G2P generation parameters

TextCorpusMixin

For corpus parsing parameters

TopLevelMfaWorker

For top-level parameters

setup()[source]#

Set up the pronunciation generator

property words_to_g2p#

Words to produce pronunciations