Reference

Class

RiTa

Name

RiTa.getSyllables

Description Analyzes the input and returns a String containing the phonemes for each syllable of each word of the input text, delimited by dashes (phonemes) and spaces (words)
Syntax
RiTa.getSyllables(word);
RiTa.getSyllables(wordArr);
Parameters
String OR String[]words to analyze
Returns
Stringe.g., 'dh-ax d-ao-g r-ae-n f-ae-s-t' for the 4 syllables of the phrase 'The dog ran fast'
Example
RiTa.getSyllables("apple"); // returns -> ae/p-ah-l
Platform Java / Javascript