how to calculate the amplitude of a wav by channels/frequency bin?

309 Views Asked by At

I was using a tool in bash call spectgen to calculate the amplitude of a wav file. The description of spectgen is available here: http://festvox.org/docs/speech_tools-1.2.0/x1717.htm#AEN1772.

What I'd like to get is a list of amplitude values according to the time. So the command I run is:

spectgen A_wav_filename.wav -otype xgraph -raw -shift 0.05 -o Output_file

And then I got a file with such format:

"track_0"
0.001   11.6221
0.002   15.3733
... ...
"track_1"
0.001   13.6334
0.002   15.4525
... ...
... ...
"track_127"
0.001   10.4165
0.002   12.1524

I'm not sure about what the track actually means. As in the description, it plots a 3-D graph based on time and channels and it's amplitude. So the first column is time for sure, and second should be the amplitude I think? I am guessing that the "track" means each channel? If it does, then how to calculate the amplitude value for each time point? Thanks a lot in advance.

0

There are 0 best solutions below