|
請指教以下的 錯誤如何解決: AttributeError Traceback (most recent call last) <ipython-input-1-5eed18734c5c> in <module> 49 for i in range(len(wavfiles)): 50 try: ---> 51 with sr.Wavfile("soundSlice/slice{:0>3d}.wav".format(i+1)) as source: 52 audio = r.record(source) 53 result = r.recognize_google(audio, language="zh-TW") #辨識結果
AttributeError: module 'speech_recognition' has no attribute 'Wavfile'
|