Score:1

How can a spectrogram of a sound be plotted between a defined upper and lower frequency bound?

cn flag

I would like to plot a spectrogram of a sound between a range of frequencies, specifically from 0 kHz to 2000 Hz. Using SoX (sox sound.wav -n spectrogram -x 1000 -y 800), I have been able to make a plot, but I have not been able to set the vertical frequency axis to the range I require:

How might this be done? I am happy to use a different program.

cc flag
What have you tried? Your sample just sets the graph size. I'd expect things like rate, and -X -Y might be applicable.
BlandCorporation avatar
cn flag
Thanks for your suggestion. I have looked at [SoX documentation](http://sox.sourceforge.net/sox.html) and `-y` changes the height of the image produced while `-Y` changes the height of the plot as it appears in the image. Neither changes the limits or range of the vertical axis for frequency. I've confirmed this in usage tests.
cc flag
Stick in -r 4k in front of sound.wav -- works for me to reduce the vertical frequency to 2k (one half the sampling rate).
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.