For folks who want to try this at home on Mac OS X, you&#x27;ll need to change &#x27;sapi5&#x27; to &#x27;nsss&#x27; on the line &#x27;speech_engine = pyttsx.init(&#x27;sapi5&#x27;)&#x27;.<p>I also had to &#x27;brew install portaudio flac swig&#x27; and a bunch of other python libs. By the time it ran, &#x27;pip freeze&#x27; returned:<p><pre><code>    altgraph==0.12
    macholib==1.7
    modulegraph==0.12.1
    py2app==0.9
    PyAudio==0.2.9
    pyobjc==3.0.4
    pyttsx==1.1
    SpeechRecognition==3.3.0
    pocketsphinx==0.0.9
</code></pre>
My fork of the gist is here: <a href="https:&#x2F;&#x2F;gist.github.com&#x2F;ivanistheone&#x2F;b988d3de542c1bdd6a90" rel="nofollow">https:&#x2F;&#x2F;gist.github.com&#x2F;ivanistheone&#x2F;b988d3de542c1bdd6a90</a>