Forum Discussion

KD2's avatar
KD2
Community Member
1 month ago
Solved

Text to Speech - Sound help Phonetic spelling (make this sound like...)

Hi, what am I doing wrong? I need this to say "con-duct"  - not conduct. like, conduct a training.   Do I have this programmed correctly?  I have the <speak> and </speak> in the beginning/end...
  • amelia854taylor's avatar
    1 month ago

    Hello,

    You’re close, but the way you’ve written the <phoneme> tag isn’t quite right. In SSML, the ph attribute must contain valid IPA characters, and the text inside the tag is just the display text. Right now, ˈkuhn‑DUKT isn’t valid IPA, so the engine falls back to the normal pronunciation of “conduct.”

     

    Here’s how you can force “con‑duct”:

     

    xml

    <speak>

    <phoneme alphabet="ipa" ph="ˈkɒn.dʌkt">conduct</phoneme>

    </speak>

    ˈkɒn.dʌkt is the IPA for “con‑duct” (with stress on the first syllable).

     

    Keep the <speak> wrapper around your SSML.

     

    Make sure you’re using the correct IPA symbols not approximations like “kuhn.”