Reference

Class

RiTa

Name

RiTa.getPhonemes

Description Returns a string containing all phonemes for the input text
Syntax
RiTa.getPhonemes(wordStr);
RiTa.getPhonemes(wordArr);
Parameters
String OR String[]words to analyze
Returns
Stringe.g., 'ae-n eh-l-ax-f-ax-n-t ih-z ey m-ae-m-ax-l'
(for 'An elephant is a mammal')
Example

RiTa.getPhonemes("apple"); // returns -> ae-p-ah-l

RiTa.getPhonemes("two apples"); // returns -> t-uw ae-p-ah-l-z

Platform Java / Javascript