sound.speech.phonemize

sound.speech

phonemize(s, opts) -> events, err

Transcribe text into editable phoneme events

Runs text normalization, grapheme-to-phoneme and prosody with the voice opts resolves. Every returned event has ph, stress, dur and f0. Returns nil and an error for an unknown voice, or for text with no words.