|VoiceXML 2.1 Development Guide||Home | Frameset Home|
|alphabet||Data Type: CDATA||Default: Optional|
|The alphabet attribute denotes the phoenetic alphabet to be used. The possible choices are:|
|ph||Data Type: CDATA||Default: Required|
|The ph attribute specifies the phoneme string to be used.|
|ANNOTATIONS: EXISTING POSTS|
|I'd be really greatful if there were a couple of examples utilizing this tag here.|
I should be clear in the fact that the hosted Voxeo VXML platforms do not currently support phoneme. However, you may find a useful workaround by employing the <sub> element:
this message brough to you by the
<sub alias="World Wide Web Consortium">W3C</sub>
Hope this helps!
|Just thought I would pass this along for anyone using phoneme to get around mispronunciation of unusual words and names: when using the CMU phoneme alphabet, don't forget to put the stress indicators on the vowels.
Consider this example:
Let's go to<phoneme alphabet="x-cmu" ph="P ER S AH L AA P AH L IH S">timbuktu.</phoneme>
Would you rather go to <phoneme alphabet="x-cmu" ph="P ER0 S AH2 L AA1 P AH0 L IH0 S">katmandu</phoneme>?
The TTS engine will actually say this: "Let's go to timbuktu. Would you rather go to perselopolis?"
The first phoneme fails to compile and the TTS engine falls back to "timbuktu". The second phoneme compile correctly (and does a decent job of stressing the right parts of a made up city name).
For reference, here is the URL of the CMU dictionary:
The stress indicators following the vowels have the following meaning:
0 - no special stress or inflection
1 - primary stress
2 - secondary stress
Thanks for passing along that script! I'll be sure to go ahead and forward that over to our doc team as well.