g2p_with_stress / test.py
NikiPshg's picture
Upload 27 files
9ba7d3b verified
raw
history blame
180 Bytes
from G2P_lexicon import g2p_en_lexicon
text = "text, numbers, and some strange symbols !№;% 21"
g2p = g2p_en_lexicon()
phonemes = g2p(text, with_stress=False)
print(phonemes)