Open tbreitenfeldt opened 2 years ago
@ctoth, thoughts on merging this? It certainly seems useful for those of us that develop for the Mac.
Given that I have not found any other working solution, I am ready to merge this pull request if one of the repository owners approves the changes and can merge this. Hopefully some day we are able to find a better solution, however as it is, we will have to live with using apple script and the lag that comes with it until a better solution is found.
@ctoth @tspivey , please review and merge this pull request or #16 ! We are trying to create a screenreader for Neovim and we really really need a speech method which would work without VoiceOver on MacOS.
Implemented two classes: VoiceOver, and SystemVoiceOver. The VoiceOver class leverages Apple Script to directly talk to the currently running instance of VoiceOver, where the SystemVoiceOver class uses NSSpeechSynthesizer to create a new instance of VoiceOver to be used when VoiceOver is inactive.