llSourcell / tensorflow_speech_recognition_demo

This is the code for 'How to Make a Simple Tensorflow Speech Recognizer' by @Sirajology on Youtube
383 stars 250 forks source link

TypeError: maybe_download() takes exactly 2 arguments (1 given) #10

Open samimoftheworld opened 7 years ago

samimoftheworld commented 7 years ago

$ python speech_data.py downloading speech datasets Traceback (most recent call last): File "speech_data.py", line 372, in maybe_download( Source.DIGIT_SPECTROS) TypeError: maybe_download() takes exactly 2 arguments (1 given)

prabin525 commented 7 years ago

Any Solution found to this???

laceywang1993 commented 6 years ago

pip install speech_data

toseef-ahmd commented 6 years ago

I came across with this error. I think the program doesn't know where to save the data set after downloading it. Line 24 of speech_data.py defines the working directory (where the downloaded data will be saved and processed). What I did was that I passed this directory as second argument in lines 369-372. Worked for me and it started downloading the data set.

This is what I did.

maybe_download( Source.DIGIT_SPECTROS, 'data/') maybe_download( Source.DIGIT_WAVES, 'data/') maybe_download( Source.NUMBER_IMAGES, 'data/') maybe_download( Source.NUMBER_WAVES, 'data/')

Hope this solves the issue

toseef-ahmd commented 6 years ago

@laceywang1993 we can't download speech_data.py via pip or anything else. It is just a python program file taken from 'pannous/speech_recognition' project It is not a python package or something you can install through pip or conda. :-)

Hitesh95 commented 6 years ago

@comsian106 can you please explain that above line 24 issue. which has to be pasted exactly where can you please tell me through screen shot or the code of the line. would be very thankful

Mutekeri commented 4 years ago

@comsian106 using windows, still getting the error URLError: <urlopen error [Errno 11001] getaddrinfo failed> from your solution. Where else do u make changes