Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am playing around with algorithmic and generative music (at this point it's all generative noise).

I have a simple Python script which outputs numbers (ala "bytebeats"). I want to listen to the numbers as sound.

How can I play the output directly through my speakers in Ubuntu 13.04? I haven't been very successful searching for the answer.

share|improve this question

pyao (package name: python-pyao) will allow you to use libao under Python in order to output audio.

share|improve this answer
    
So, I have to rely on third party libraries for this utility? I was hoping there was some kind of native command line tool in linux. Thanks, I will look into pyao. – Chase May Jul 15 '13 at 3:51
    
Well, you could dump raw data into paplay or aplay, but since you're already using an actual language you should consider using something with proper bindings to that language. – Ignacio Vazquez-Abrams Jul 15 '13 at 4:02
    
Thanks! It seems so complicated, all of it. – Chase May Jul 15 '13 at 18:48

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .