linuxaudiowavamplitude

how do I get a list of amplitudes from a audio file?


how do I get a list of amplitudes from a audio file using a linux command line tool ?


Solution

  • Do you mean getting all the individual samples as text? SoX can do that.

    $ sox file.wav file.dat
    

    will take an audio file file.wav, and generate a text file file.dat with a column for the timebase in seconds, and a column for each audio channel scaled by the maximum possible value.