play sound on Ubuntu 10.4. (pulse audio?)

News123 news1234 at
Sun Sep 12 14:53:31 CEST 2010

Hi Tim,

On 09/11/2010 11:42 PM, Tim Harig wrote:
> On 2010-09-11, News123 <news1234 at> wrote:
>> What would be the way to detect how to play audio on a linux system
>> without knowing ufront whether the system uses pulse, ALSA or whatever?
> I would suggest libao:
> and it's python bindings:

Thanks a lot.

Yes, libao is a nice solution.

After having fixed some audio setup issues on my PC I have now the ALSA
and the libao solution working.

import ao
pcm = ao.AudioDevice("pulse", bits=16, rate=sample,
	channels=1, byte_format=1)
pcmdata = create_pcmdata()

More information about the Python-list mailing list