Primary competition visual

GIZ NLP Agricultural Keyword Spotter

Helping Uganda
$7 000 USD
Challenge completed almost 5 years ago
Classification
Automatic Speech Recognition
Natural Language Processing
737 joined
253 active
Starti
Sep 11, 20
Closei
Nov 29, 20
Reveali
Nov 29, 20
User avatar
IsaacOlowo
Error Loading dataset
Help · 18 Nov 2020, 12:35 · 2

Please help me, I am new to NLP and Audio datasets. I tried using torchaudio to load my audiofiles into Jupiter Notebook. says file not found.

here is the path where I have saved the unzipped audio files.

filename = "C:/Users/user/........./........../........../GIZ NLP data/audio_files"

waveform, sample_rate = torchaudio.load(filename)

the error message:

OSError Traceback (most recent call last) <ipython-input-17-07a4609d07c9> in <module> 6 7 filename = "C:/Users/user/........./........../........../GIZ NLP data/audio_files" ----> 8 waveform, sample_rate = torchaudio.load(filename) 9 10 print("Shape of waveform: {}".format(waveform.size())) ~\Anaconda3\lib\site-packages\torchaudio\backend\soundfile_backend.py in load(filepath, out, normalization, channels_first, num_frames, offset, signalinfo, encodinginfo, filetype) 48 # check if valid file 49 if not os.path.isfile(filepath): ---> 50 raise OSError("{} not found or is a directory".format(filepath)) 51 52 if num_frames < -1: OSError: C:/Users/user/........./........../........../GIZ NLP data/audio_files not found or is a directory

thanks

Discussion 2 answers

C:/Users/user/........./........../........../GIZ NLP data/audio_files. This is a directory. To specify the filename you have to give the name of the file such as:

C:/Users/user/........./........../........../GIZ NLP data/audio_files/ABC.wav if the file name is named as ABC

18 Nov 2020, 12:49
Upvotes 0
User avatar
IsaacOlowo

I tried it....just as you have said...still the same error

18 Nov 2020, 12:55
Upvotes 0