Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

1 Answer 1

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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.