Forum Discussion
Text to Speech - Sound help Phonetic spelling (make this sound like...)
- 30 days 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.”
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.”
thank you!
Related Content
- 7 months ago