How to plot a wav file

前端 未结 8 1056
时光取名叫无心
时光取名叫无心 2020-12-12 10:51

I have just read a wav file with scipy and now I want to make the plot of the file using matplotlib, on the \"y scale\" I want to see the aplitude and over the \"x scale\" I

8条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-12 11:05

    Just an observation (I cannot add comment).

    You will receive the following mesage:

    DeprecationWarning: Numeric-style type codes are deprecated and will resultin an error in the future.

    Do not use np.fromstring with binaries. Instead of signal = np.fromstring(signal, 'Int16'), it's preferred to use signal = np.frombuffer(signal, dtype='int16').

提交回复
热议问题