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


Groups > comp.lang.python > #18172

Which library for audio playback ?

Date 2011-12-29 14:55 +0100
From Jérôme <jerome@jolimont.fr>
Subject Which library for audio playback ?
Newsgroups comp.lang.python
Message-ID <mailman.4218.1325167118.27778.python-list@python.org> (permalink)

Show all headers | View raw


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. There
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.

-- 
Jérôme

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


Thread

Which library for audio playback ? Jérôme <jerome@jolimont.fr> - 2011-12-29 14:55 +0100
  Re: Which library for audio playback ? K Richard Pixley <rich@noir.com> - 2011-12-30 17:17 -0800
    Re: Which library for audio playback ? Jérôme <jerome@jolimont.fr> - 2011-12-31 12:02 +0100

csiph-web