Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!xlned.com!feeder3.xlned.com!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.010 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'skip:\xa0 30': 0.05; 'binary': 0.07; 'python3': 0.07; '22,': 0.09; 'collier': 0.09; 'cc:addr:python-list': 0.11; 'python': 0.11; 'compatible.': 0.16; 'interaction,': 0.16; 'pygame': 0.16; 'pygame,': 0.16; 'files.': 0.16; 'wrote:': 0.18; 'bit': 0.19; 'app': 0.19; 'trying': 0.19; 'skip:p 40': 0.19; 'example': 0.22; 'email addr:gmail.com>': 0.22; 'cc:addr:python.org': 0.22; 'mon,': 0.24; 'cc:2**0': 0.24; 'sort': 0.25; 'header:In-Reply-To:1': 0.27; 'skip:p 30': 0.29; 'url:code': 0.29; '8bit%:3': 0.30; 'message-id:@mail.gmail.com': 0.30; 'url:mailman': 0.30; 'work.': 0.31; 'that.': 0.31; 'option': 0.32; 'another': 0.32; 'url:python': 0.33; 'could': 0.34; 'johnson': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'there': 0.35; 'url:downloads': 0.36; 'url:listinfo': 0.36; 'url:org': 0.36; 'audio': 0.38; 'pm,': 0.38; 'heard': 0.39; 'skip:p 20': 0.39; 'release': 0.40; 'url:mail': 0.40; 'browser': 0.61; 'url:p': 0.64; 'provide': 0.64; 'more': 0.64; 'to:addr:gmail.com': 0.65; 'latest': 0.67; 'sound': 0.68; 'jul': 0.74; 'application?': 0.84; '2013': 0.98 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=4FJysVmp0GTJhfiZddhTsb4SIiHl/Y7euJBqVvi7mrs=; b=HbxgoJ9OzoNnXuKpR8Ouc9bv08CzSpgFA/NWDZgJDFu1QRuKYLIssoaPxmAky/wqiN rpbzswCoYaW9E6mP757Mu9v9NYd8W4itRUu8LZu4s2xZ6mRMr4F3a+aV/zoiPP3NsYrY ebBpTuTa+A5BKN9kgYRnwzKlu1uGlgfSL43htBgrprdVlDSCeD68og3y57TLwcvgsWfh RM2/V6iym4wSl/JrY9gooXPFcXYevNqemc0hgiSZroCJ5IHTTtngWb30VDt5qNCJRe98 FMVTkj19Bitjz0dnq+qE5qaTdO8C04pDd5tYiBvwmD/NNG4831LkK6G56h4V27EctXvl 4PDg== MIME-Version: 1.0 X-Received: by 10.224.135.138 with SMTP id n10mr10360063qat.96.1374556753041; Mon, 22 Jul 2013 22:19:13 -0700 (PDT) In-Reply-To: References: <51E9E29E.7010203@Gmail.com> Date: Tue, 23 Jul 2013 01:19:12 -0400 Subject: Re: Play Ogg Files From: David Hutto To: alex23 Content-Type: multipart/alternative; boundary=001a11c29762fd1e8904e226ee6d Cc: python-list X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 91 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1374556762 news.xs4all.nl 15941 [2001:888:2000:d::a6]:34717 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:51069 --001a11c29762fd1e8904e226ee6d Content-Type: text/plain; charset=ISO-8859-1 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? On Mon, Jul 22, 2013 at 8:37 PM, alex23 wrote: > On 20/07/2013 10:25 PM, Devyn Collier Johnson wrote: > >> I have not heard of Pyaudio; I will look into that. As >> for Pygame, I have not been able to find any good documentation for >> playing audio files. Plus, I recently learned that Pygame is not Python3 >> compatible. >> > > 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: > > pyglet.media.load('boot.ogg', streaming=False).play() > > http://www.pyglet.org/doc/**programming_guide/simple_**audio_playback.html > > The latest development release provides support for Python 3: > > https://code.google.com/p/**pyglet/downloads/list?q=1.**2alpha1 > -- > http://mail.python.org/**mailman/listinfo/python-list > -- Best Regards, David Hutto *CEO:* *http://www.hitwebdevelopment.com* --001a11c29762fd1e8904e226ee6d Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
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 comma= nd?


On Mon,= Jul 22, 2013 at 8:37 PM, alex23 <wuwei23@gmail.com> wrote:<= br>
On 20/07/2013 10:25 PM, Devyn Collier Johnson wrote:
I have not heard of Pyaudio; I will look into that. As
for Pygame, I have not been able to find any good documentation for
playing audio files. Plus, I recently learned that Pygame is not Python3 compatible.

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, bu= t given your example usage it might be a bit more straightforward:

=A0 =A0pyglet.media.load('boot.ogg', streaming=3DFalse).play()

http://www.pyglet.org/doc/programming_guid= e/simple_audio_playback.html

The latest development release provides support for Python 3:

https://code.google.com/p/pyglet/downloads/list?q= =3D1.2alpha1
--
http://mail.python.org/mailman/listinfo/python-list



--
Best Rega= rds,
David Hutto<= /span>
CEO: http://www.hitwebdevelopment.com
--001a11c29762fd1e8904e226ee6d--