Forum Discussion
Text to Speech - Sound help Phonetic spelling (make this sound like...)
- 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.”
I've tested this on my end with and without your phonetic programming, and without I'm getting con-duct and with I'm getting kuhn-dukt, so I'd say you have it correct. For reference, I was using AI text-to-speech voice Laura - Enthusiast, Quirky Attitude.
Related Content
- 7 months ago