macOS accessibility speak punctuation

Hey folks,

I want VoiceOver to speak punctuation in certain cases. On iOS, there seems to be the UIAccessibilitySpeechAttributePunctuation attributed string key to achieve that, but I can't find an alternative for macOS.

What is the recommended approach for achieving the same result?

I believe the Mac equivalent is NSAccessibilitySpeechAttributePunctuation, if you'd like to try it out

https://developer.apple.com/documentation/foundation/nsattributedstring/key/1620201-accessibilityspeechpunctuation

There is no symbol for NSAccessibilitySpeechAttributePunctuation. The linked documentation points to UIAccessibilitySpeechAttributePunctuation.

In fact, I can't even seem to find an equivalent for accessibilityAttributedLabel on macOS.

Does accessibility on macOS support this funtionality?

Whoops, that is completely my mistake. The link is what I intended to send, but I typed the symbol name from memory—incorrectly, obviously.

Let me look into this further and then reply when I have more info. Just wanted to apologize for my misinformation earlier!

Can you share more information about the view / element that you're focused on in this case? Is it a text view, button, etc?

I'm looking for a general approach, but for the purposes of this discussion, let's say an NSTextField.

macOS accessibility speak punctuation
 
 
Q