pythonwavaudio-analysis

Output of the audio file when using wavfile.read() does not originate from zero


All of my audio files that I am using producing an output that does not make sense for me when using wavfile.read() I do not why. For example output of one file is

Example of the output of one of my audio files

why is it not originating from zero like a normal audio for instance :-

example of a normal output

I wanted to ask why my output in the first link is not read normally and how to display it normally so I can analysis the audio properly. I have been searching for a couple of days and could solve it so I would appreciate it if someone can guide me or provide me with useful links


Solution

  • It seems that it depends on the library that is reading the audio file which can produce different outputs, I shifted to read my audio files by:-

    import soundfile as sf
    data, samplerate = sf.read(audioFile)
    

    and now the output representation is originating from zero.