<div dir="ltr"><div>This is using 3.2, which shouldn't be far off, the latest I could get on ubuntu.<br><br>david@david:~$ python3.2<br>Python 3.2.3 (default, Apr 10 2013, 05:29:11) <br>[GCC 4.6.3] on linux2<br>Type "help", "copyright", "credits" or "license" for more information.<br>
>>> import subprocess<br>>>> subprocess.call(['espeak', 'word_spoken'], stdin=None, stdout=None, stderr=None, shell=False)<br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Sat, Jul 20, 2013 at 12:39 AM, David Hutto <span dir="ltr"><<a href="mailto:dwightdhutto@gmail.com" target="_blank">dwightdhutto@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><div>you could use , and I think its <br><br><tt>david@david:~$ python<br>Python 2.7.3 (default, Aug  1 2012, 05:16:07) <br>[GCC 4.6.3] on linux2<br>Type "help", "copyright", "credits" or "license" for more information.<br>

>>> import subprocess<br>>>> subprocess.call(['espeak', 'word_spoken'], stdin=None, stdout=None, stderr=None, shell=False)<br><br><br><br></tt></div><div><tt>This is on ubuntu linux, using espeak.<br>

</tt></div>this is on ubun<br></div><div class="gmail_extra"><div><div class="h5"><br><br><div class="gmail_quote">On Sat, Jul 20, 2013 at 12:21 AM, Stefan Behnel <span dir="ltr"><<a href="mailto:stefan_ml@behnel.de" target="_blank">stefan_ml@behnel.de</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Devyn Collier Johnson, 20.07.2013 03:06:<br>
> I am making a chatbot that I host on Launchpad.net/neobot. I am currently<br>
> converting the engine from BASH code to Python3. I need to convert this for<br>
> cross-platform compatibility. I do not need to use Mplayer; I just show the<br>
> below code to give others a better idea what I am doing. I would prefer to<br>
> be Python3 independent; I do not want to use the system shell. I am fine<br>
> with using Python3 modules like Pygame (if there is a py3 module). As long<br>
> as the code is fast, efficient, and simple without depending on the system<br>
> shell or external apps, that would be nice. I also need the code to execute<br>
> while the rest of the script continues running.<br>
><br>
>     jobs = multiprocessing.Process(SEND = subprocess.getoutput('mplayer<br>
> -nogui -nolirc -noar -quiet ./conf/boot.ogg')) #Boot sound#<br>
<br>
Well, since you mentioned it already, have you actually looked at pygame?<br>
It should be able to do what you want. There's also pyaudio, which is more<br>
specialised to, well, audio. A web search for python and ogg might provide<br>
more.<br>
<span><font color="#888888"><br>
Stefan<br>
<br>
<br>
--<br>
<a href="http://mail.python.org/mailman/listinfo/python-list" target="_blank">http://mail.python.org/mailman/listinfo/python-list</a><br>
</font></span></blockquote></div><br><br clear="all"><br></div></div><span class="HOEnZb"><font color="#888888">-- <br>Best Regards,<br><span style="font-family:arial,helvetica,sans-serif">David Hutto</span><br><i><b>CEO:</b></i> <u><a href="http://www.hitwebdevelopment.com" target="_blank">http://www.hitwebdevelopment.com</a></u><br>


</font></span></div>
</blockquote></div><br><br clear="all"><br>-- <br>Best Regards,<br><span style="font-family:arial,helvetica,sans-serif">David Hutto</span><br><i><b>CEO:</b></i> <u><a href="http://www.hitwebdevelopment.com" target="_blank">http://www.hitwebdevelopment.com</a></u><br>

</div>