Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #51080

Re: Play Ogg Files

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <devyncjohnson@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.038
X-Spam-Evidence '*H*': 0.92; '*S*': 0.00; 'binary': 0.07; 'python3': 0.07; '22,': 0.09; 'collier': 0.09; 'runs': 0.10; '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; 'seems': 0.21; 'example': 0.22; 'email addr:gmail.com&gt;': 0.22; 'header:User-Agent:1': 0.23; 'mon,': 0.24; 'sort': 0.25; 'header:In-Reply-To:1': 0.27; 'am,': 0.29; 'url:code': 0.29; 'url:mailman': 0.30; 'work.': 0.31; 'received:10.0.0': 0.31; 'that.': 0.31; 'idea,': 0.31; 'file': 0.32; 'option': 0.32; 'another': 0.32; 'url:python': 0.33; 'implemented': 0.33; 'could': 0.34; 'johnson': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'there': 0.35; 'everyone.': 0.36; 'url:downloads': 0.36; 'url:listinfo': 0.36; 'received:10.0': 0.36; 'url:org': 0.36; 'received:10': 0.37; 'audio': 0.38; 'to:addr:python-list': 0.38; 'pm,': 0.38; 'heard': 0.39; 'to:addr:python.org': 0.39; 'skip:p 20': 0.39; 'release': 0.40; 'url:mail': 0.40; 'browser': 0.61; 'decided': 0.64; 'url:p': 0.64; 'provide': 0.64; 'more': 0.64; 'different': 0.65; 'latest': 0.67; 'sound': 0.68; 'jul': 0.74; 'application?': 0.84; 'offered.': 0.91; 'officially': 0.91; '2013': 0.98
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type; bh=WDJmpDSO5IxqSLAbEk2ua9RXSymFE31p3CUB2gTVmYA=; b=eOu31t1sg61ZeGzQrRGVhZ5o+QWv5VW/zuA8jdtF3MLICoe3LTIhV6hgFfoIYO8Vkk CT9dVPWgVqlQqaAXmpOLQ0DGXe1L6UY1WPKrxg5s8AZBN0qPHHNOffCrZb6HAgQYKybu Y0+bGEMoBEwYtxmNtkKBy4ebinKlZwU/bQOeiIyIAefp7lwdEgV7EUgUXJpHKDFTxOi5 HQ2zqs9XtAANOdRUVP+b5pWAUCT+F76K2LDqoAAdQfWIAfPFN8GBqL7fovJKFgKrHHKh KLfvlOtcqKDmv7cyf1p0MnWwBUOiN0c0DIbuMBPfDZSsJqvHBqJGkv5iK711qkTG2d/d Rjsw==
X-Received by 10.182.144.231 with SMTP id sp7mr24323867obb.14.1374576023782; Tue, 23 Jul 2013 03:40:23 -0700 (PDT)
Date Tue, 23 Jul 2013 06:40:10 -0400
From Devyn Collier Johnson <devyncjohnson@gmail.com>
User-Agent Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130623 Thunderbird/17.0.7
MIME-Version 1.0
To Python Mailing List <python-list@python.org>
Subject Re: Play Ogg Files
References <51E9E29E.7010203@Gmail.com> <ksd37r$coj$1@ger.gmane.org> <mailman.4919.1374323123.3114.python-list@python.org> <kskirt$4qa$1@dont-email.me> <CA+vVgJWqjpYie=F7H+9swFYOY7bd-uTKCKBm32i-Tsfvwgh=1Q@mail.gmail.com>
In-Reply-To <CA+vVgJWqjpYie=F7H+9swFYOY7bd-uTKCKBm32i-Tsfvwgh=1Q@mail.gmail.com>
Content-Type multipart/alternative; boundary="------------070009070703090902090805"
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.5000.1374576026.3114.python-list@python.org> (permalink)
Lines 155
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1374576026 news.xs4all.nl 15970 [2001:888:2000:d::a6]:60900
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:51080

Show key headers only | View raw


[Multipart message — attachments visible in raw view] - view raw

On 07/23/2013 01:19 AM, David Hutto wrote:
> 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 <wuwei23@gmail.com 
> <mailto:wuwei23@gmail.com>> 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_
>
>

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.

Mahalo,
DCJ

Back to comp.lang.python | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Re: Play Ogg Files Devyn Collier Johnson <devyncjohnson@gmail.com> - 2013-07-20 08:25 -0400
  Re: Play Ogg Files alex23 <wuwei23@gmail.com> - 2013-07-23 10:37 +1000
    Re: Play Ogg Files David Hutto <dwightdhutto@gmail.com> - 2013-07-23 01:19 -0400
    Re: Play Ogg Files Devyn Collier Johnson <devyncjohnson@gmail.com> - 2013-07-23 06:40 -0400

csiph-web