Convert 3-byte stereo WAV-file to numpy array

后端 未结 3 1522
小蘑菇
小蘑菇 2021-01-13 04:29

I have been given a large WAV-file of continuous underwater recording which I would like to convert to a numpy array for analysis. I am struggling to do this.

So far

3条回答
  •  时光取名叫无心
    2021-01-13 05:29

    This is an old question but if someone needs additional options and there is no restriction on using external modules, then you can probably use librosa

    myNdArray = librosa.core.load(wav_path, sr=sample_rate)[0]
    

提交回复
热议问题