I am terrible at proofreading my own texts, which many of my colleagues can attest to. I was therefore happy to discover that MacOS has quite a good text-to-speech feature, and that this can be accessed from the command line. This means that I could quite easily integrate it into my Vim workflow, a prerequisite for me using it at all. This has turned out to be incredibly useful, and is something I now use everyday for all texts I write. When the text is read back to me by the friendly lady inside my computer, I can easily hear if something is spelled incorrectly, since she, unlike me, doesn’t know how to gloss over miss-spelled or repeated words. Below I describe how I use the speech synthesis in Vim and thereafter provide the code I have in my
.vimrc to get this functionality.