accessibilitySpeechIPANotation is sometimes handy in English where a word is spelled the same but pronounced differently depending of the context. Some examples are: live, read... Or you may want to correct how VoiceOver pronounces your app's name!

Example shows how you can specify the correct pronunciation for the text “Most read” and for the word “Live” in the context of direct broadcasting, using the IPA notation. The code sets an accessibilityAttributeLabel to the UILabel (or UIView) with the string and a dictionary containing the accessibilitySpeechIPANotation attribute key and the “Most rēd” or “laɪv” values.

Example code in the image:

let liveNewsChannelView = UIView()
let attributedLabel = NSMutableAttributedString(string: "24 hour news channel. ")

attributedLabel.append(NSAttributedString(string: "Live",attributes: [.accessibilitySpeechIPANotation: "laɪv"]))

liveNewsChannelView.accessibilityAttributedLabel = attributedLabel