User avatar
Grumpy Mike
Posts: 936
Joined: Sat Sep 10, 2011 7:49 pm
Location: Manchester (England England)
Contact: Website

Reading Audio data

Mon Jan 14, 2013 4:41 pm

Is there any way of reading the audio data from a sound file that is currently being played?
I want to play a sound file and have access to the waveform data so I can show a real time oscilloscope like display. Can this be done in Python?
The file could be played from Python or from another desktop audio player.

-rst-
Posts: 1316
Joined: Thu Nov 01, 2012 12:12 pm
Location: Dublin, Ireland

Re: Reading Audio data

Mon Jan 14, 2013 5:27 pm

Think I saw something like this on this forum, but not sure if it was Python...
http://raspberrycompote.blogspot.com/ - Low-level graphics and 'Coding Gold Dust'

-rst-
Posts: 1316
Joined: Thu Nov 01, 2012 12:12 pm
Location: Dublin, Ireland

Re: Reading Audio data

Mon Jan 14, 2013 5:37 pm

Ha, found it: http://www.raspberrypi.org/phpBB3/viewt ... 67#p232657 - that says RMS, but maybe there is more to the lib...
http://raspberrycompote.blogspot.com/ - Low-level graphics and 'Coding Gold Dust'

Return to “Python”