Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Generating a audio waveform graphic within Python

Is it possible? I'd like run over a batch of audio files and produce graphic waveform files from them. Similar to what SoundCloud displays, but perhaps the module(s) im seeking will offer a few more options.

Whats out there? whats good?

like image 909
Ben Keating Avatar asked Feb 15 '11 23:02

Ben Keating


People also ask

How do I create a WAV file in Python?

The function needs two parameters - first the file name and second the mode. The mode can be 'wb' for writing audio data or 'rb' for reading. A mode of 'rb' returns a Wave_read object, while a mode of 'wb' returns a Wave_write object. Close the file if it was opened by wave.


1 Answers

See this example, it is exactly what you want in pure Python. You have another options too, but using audiolab.

like image 66
Tarantula Avatar answered Oct 03 '22 12:10

Tarantula