I am using Python 2.7, win 7, 64bit and I need to play a sound data stored in a variable. Of course, there is a possibility to make a WAV file and play it, but is there any option to play that directly? Could you recommend a library, etc. etc.? Apparently, audiere is outdated by now (as presented in Playing a sound from a wave form stored in an array).
Asked
Active
Viewed 2,468 times
1 Answers
1
What you might be looking for is pyAudio : http://people.csail.mit.edu/hubert/pyaudio/docs/
See in the example how they are storing a wav file in a variable and then playing it.

Borbag
- 597
- 4
- 21
-
After weeks of googling and trying from time to time this actually was the most helpful example: http://askubuntu.com/questions/202355/how-to-play-a-fixed-frequency-sound-using-python . The problem is now how to do that with more than 8-bits (thats the limitations of char function). – Victor Pira Feb 12 '15 at 16:54