fetch data from text file in pyttsx python
<p>Hello respected persons,</p>

<p>I am trying to fetch data from a external text file with <code>pyttsx</code> package of python language.</p>

<p>I will save text in txt file and how <code>pyttsx</code> can read that text from txt file and can speak?</p>

<p>I am trying to do like this,</p>

<pre><code>import pyttsx
engine = pyttsx.init()
engine.say("open file and read data from /users/exe/voice.txt")
engine.runAndWait()
engine.runAndWait()
</code></pre>

<p>how <code>pyttsx</code> can fetch and speak data of a text file ?</p>

<p>actually my real motto is using <code>wit.ai</code> with <code>pyttsx</code> how can I do it ?</p>