<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<br>
<div class="moz-cite-prefix">On 07/23/2013 01:19 AM, David Hutto
wrote:<br>
</div>
<blockquote
cite="mid:CA+vVgJWqjpYie=F7H+9swFYOY7bd-uTKCKBm32i-Tsfvwgh=1Q@mail.gmail.com"
type="cite">
<div dir="ltr">Devyn, are you just trying to use this in an
application? Would a browser based web app work. I ask because
there will still be some sort of DB interaction, so could it be
an option to go with a browser command?<br>
</div>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">On Mon, Jul 22, 2013 at 8:37 PM, alex23
<span dir="ltr"><<a moz-do-not-send="true"
href="mailto:wuwei23@gmail.com" target="_blank">wuwei23@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 class="im">On 20/07/2013 10:25 PM, Devyn Collier
Johnson wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">
I have not heard of Pyaudio; I will look into that. As<br>
for Pygame, I have not been able to find any good
documentation for<br>
</div>
playing audio files. Plus, I recently learned that Pygame
is not Python3<br>
compatible.<br>
</blockquote>
<br>
Another option would be Pyglet, which uses the
cross-platform binary AVBin to provide sound support. It may
not provide as much control as PyAudio, but given your
example usage it might be a bit more straightforward:<br>
<br>
pyglet.media.load('boot.ogg', streaming=False).play()<br>
<br>
<a moz-do-not-send="true"
href="http://www.pyglet.org/doc/programming_guide/simple_audio_playback.html"
target="_blank">http://www.pyglet.org/doc/programming_guide/simple_audio_playback.html</a><br>
<br>
The latest development release provides support for Python
3:<br>
<br>
<a moz-do-not-send="true"
href="https://code.google.com/p/pyglet/downloads/list?q=1.2alpha1"
target="_blank">https://code.google.com/p/pyglet/downloads/list?q=1.2alpha1</a><span
class="HOEnZb"><font color="#888888"><br>
-- <br>
<a moz-do-not-send="true"
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>
-- <br>
Best Regards,<br>
<span style="font-family:arial,helvetica,sans-serif">David Hutto</span><br>
<i><b>CEO:</b></i> <u><a moz-do-not-send="true"
href="http://www.hitwebdevelopment.com" target="_blank">http://www.hitwebdevelopment.com</a></u><br>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
</blockquote>
<br>
I will be playing an ogg file as a bootup sound for a chatbot that
runs in a terminal. There are no web-applications. I will be looking
into the different suggestions that I was offered. So far, Pyglet
seems to be the best. Once I have officially decided and implemented
an idea, I will share my choice with everyone.<br>
<br>
Mahalo,<br>
DCJ<br>
</body>
</html>