EvGeniy Ilyin
EvGeniy Ilyin

Reputation: 1929

Swift Text-To-Speech - pronunciation

how I can set pronunciation for 1 word in AVSpeechUtterance? for example - read [ri:d], read [red], read [red] spelled the same but pronounced differently

AVSpeechUtterance(string: "read") // in second form, how?

Upvotes: 0

Views: 747

Answers (1)

matt
matt

Reputation: 535169

You can use an attributed string with International Phonetic Alphabet pronunciation attached by way of the AVSpeechSynthesisIPANotationAttribute key.

Upvotes: 5

Related Questions