import matplotlib.pyplot as plt
import scipy.io.wavfile as wav
import sys
if __name__ == '__main__':
data = "">
--
"Cheshire-Puss," she began, "would you tell me, please,
which way I ought to go from here?"
"That depends a good deal on where you want to get to," said the Cat.
"I don't care much where--" said Alice.
"Then it doesn't matter which way you go," said the Cat.
plt.plot(data[1])
plt.show()
The python code to show wave data from a command line file name is above. You can modify it easily to output a .png image. Read matplotlib documentation.
On Tue, Jan 10, 2012 at 4:00 PM, Vytautas Jancauskas <unaudio@xxxxxxxxx> wrote:
---------- Forwarded message ----------
From: Vytautas Jancauskas <unaudio@xxxxxxxxx>
Date: Tue, Jan 10, 2012 at 3:59 PM
Subject: Re: sndfile-waveform PNG generator ?
To: Robin Gareus <robin@xxxxxxxxxx>
It's fairly trivial to write one your own with python using scipy. Should be in the ballpark of 20 lines or so.--On Tue, Jan 10, 2012 at 2:47 PM, Robin Gareus <robin@xxxxxxxxxx> wrote:
Hi *,
Is there a command-line tool akin to `sndfile-spectrogram` that
generates an image (preferably PNG) of an audio wave-form?
I found endless GUI apps, but command-line tools are scarce.
TIA
robin
_______________________________________________
Linux-audio-user mailing list
Linux-audio-user@xxxxxxxxxxxxxxxxxxxx
http://lists.linuxaudio.org/listinfo/linux-audio-user
"Cheshire-Puss," she began, "would you tell me, please,
which way I ought to go from here?"
"That depends a good deal on where you want to get to," said the Cat.
"I don't care much where--" said Alice.
"Then it doesn't matter which way you go," said the Cat.
--
"Cheshire-Puss," she began, "would you tell me, please,
which way I ought to go from here?"
"That depends a good deal on where you want to get to," said the Cat.
"I don't care much where--" said Alice.
"Then it doesn't matter which way you go," said the Cat.
"Cheshire-Puss," she began, "would you tell me, please,
which way I ought to go from here?"
"That depends a good deal on where you want to get to," said the Cat.
"I don't care much where--" said Alice.
"Then it doesn't matter which way you go," said the Cat.
_______________________________________________ Linux-audio-user mailing list Linux-audio-user@xxxxxxxxxxxxxxxxxxxx http://lists.linuxaudio.org/listinfo/linux-audio-user
- References:
- sndfile-waveform PNG generator ?
- From: Robin Gareus
- Fwd: sndfile-waveform PNG generator ?
- From: Vytautas Jancauskas
- sndfile-waveform PNG generator ?
- Prev by Date: Fwd: sndfile-waveform PNG generator ?
- Next by Date: Re: sndfile-waveform PNG generator ?
- Previous by thread: Fwd: sndfile-waveform PNG generator ?
- Next by thread: Re: sndfile-waveform PNG generator ?
- Index(es):