Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!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.018 X-Spam-Evidence: '*H*': 0.96; '*S*': 0.00; 'url:sourceforge': 0.02; 'url:mit': 0.07; 'deprecated,': 0.09; 'subject:library': 0.09; 'files.': 0.09; 'url:moin': 0.12; 'library': 0.13; 'why.': 0.15; 'header:X-Face:1': 0.16; 'installed,': 0.16; 'received:lan': 0.16; 'subject:Which': 0.16; 'subject:audio': 0.16; 'waves': 0.16; 'seems': 0.20; 'debian': 0.23; 'reference.': 0.23; 'subject: ?': 0.24; 'thanks.': 0.26; "i'm": 0.26; 'expect': 0.26; 'code,': 0.27; 'url:edu': 0.27; '(and': 0.28; 'sound': 0.28; 'url:)': 0.29; 'url:wiki': 0.29; 'elsewhere': 0.30; 'speakers.': 0.30; "didn't": 0.31; 'wondering': 0.32; 'there': 0.33; 'to:addr:python-list': 0.34; 'be.': 0.35; 'project': 0.35; 'url:python': 0.36; 'none': 0.37; 'two': 0.37; 'think': 0.37; 'several': 0.38; 'web,': 0.38; 'url:org': 0.39; 'should': 0.39; 'to:addr:python.org': 0.40; 'url:net': 0.60; 'received:89': 0.64; 'choice.': 0.64; 'account': 0.66; 'claims': 0.80; '(let': 0.84; 'oss': 0.84; 'packaged': 0.84; '(audio': 0.91; 'plays': 0.91; 'frequency': 0.93 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on jeftof X-Spam-Level: X-Spam-Status: No, score=-1.0 required=7.0 tests=ALL_TRUSTED autolearn=unavailable version=3.3.1 Date: Thu, 29 Dec 2011 14:55:33 +0100 From: =?UTF-8?B?SsOpcsO0bWU=?= To: python-list@python.org Subject: Which library for audio playback ? X-Mailer: Claws Mail 3.7.10 (GTK+ 2.24.8; x86_64-pc-linux-gnu) X-Face: "kBB1-!wF@,"j_&tJ&7; T,t)PeQkZg5?.:{p,s>/,+?b6pN5!yxZy^nRXA=*?W+|J9OG!W[rdx^VA^Sx`R"g,; +MzhAq"tZFg27W4qX+ZXvLX=%piZ6c.7@oSDHyQ0Mff#HGx<{ Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 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: 39 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1325167118 news.xs4all.nl 6969 [2001:888:2000:d::a6]:39933 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:18172 I'm writing a small application that plays sound through the speakers. The sounds are juste sine waves of arbitrary frequency I create in the code, not sample .wav files. I didn't expect the choice for an audio library to be that complicated. The= re are several libraries, and none of them seems to be *the* reference. Searching the web, I found these resources : http://wiki.python.org/moin/Audio http://wiki.python.org/moin/PythonInMusic * I privileged ALSA to OSS as I read elsewhere that OSS is deprecated, or on its way to be. (And JACK is not widely installed, apart from specific applications (audio work).) * Then, I picked the alsaaudio library (http://pyalsaaudio.sourceforge.net/= ). I don't remember exactly why. I think the project had the most recent updates. I don't think any project claims to be (let alone aims at being) complete. I'm wondering if I made a sensible choice. There are other libraries, including the following two that are platform independent : * PyAudiere (http://pyaudiere.org/), OSS , not packaged for debian * PyAudio (http://people.csail.mit.edu/hubert/pyaudio/) What solution would you recommend ? Are there other criterions I should take into account ? Thanks. --=20 J=C3=A9r=C3=B4me