I want to turn on and off Apples's voiceover on the MacOS possibly using a browser plugin.
Is this possible? If so what permissions are required?
I want to turn on and off Apples's voiceover on the MacOS possibly using a browser plugin.
Is this possible? If so what permissions are required?
Copyright © 2021 Jogjafile Inc.
I did some research on your question and while it looks like there are ways to force VoiceOver to speak (e.g. using
NSAccessibilityPostNotification), VoiceOver needs to be enabled by the user to begin with. Apple wants the user to control this and really does NOT want you, the developer, to toggle this setting programmatically.One potential, disgusting hack you could try (and I wouldn't do it in production/shipping code myself) would be to force VoiceOver on via running an AppleScript. E.G. a script that looks like this:
appears to force VoiceOver to on, at least from the ScriptEditor.
On the other hand, if your users are not accustomed to VoiceOver, they will be confused and potentially furious with you.