问答详情
源自:3-2 项目介绍、项目目标

您好,老师,我在跑streaming.py文件时出现了以下报错,您能帮忙解决下吗?

(base) PS D:\Users\username\Desktop\asr_learn\03> python .\streaming.py

Traceback (most recent call last):

  File "D:\Users\username\Desktop\asr_learn\03\streaming.py", line 21, in <module>

    feat = ap.MelSpec(

  File "D:\Users\username\Desktop\asr_learn\03\audio_processing.py", line 35, in __init__

    self.stft_fn = STFT(filter_length=filter_length, hop_length=hop_length, win_length=win_length)

  File "D:\Users\username\Desktop\asr_learn\03\stft.py", line 117, in __init__

    fft_window = pad_center(fft_window, filter_length)

TypeError: pad_center() takes 1 positional argument but 2 were given


提问者:慕标029234 2023-03-04 15:59

个回答

  • 慕标029234
    2023-03-07 16:13:46

    已经解决了,http://img.mukewang.com/6406f1c800019cc307040090.jpg,可以修改这个库函数参数列表为图片那样,也可以修改http://img.mukewang.com/6406f2130001d89d07700107.jpgfft_windows=pad_center()参数的传递方式