import os
import warnings
import torchaudio
from torch.utils.data import Dataset
from torchaudio.datasets.utils import (download_url, extract_archive, unicode_csv_reader, walk_files)
URL = “https://www.kaggle.com/mfekadu/darpa-timit-acousticphonetic-continuous-speech 15”
FOLDER_IN_ARCHIVE = “timitcorpus”
def load_timit_item(fileid, path, ext_audio):
Read lables
labels = [int© for c in fileid.split("_")]
Read wav
file_audio = os.path.join(path, fileid + ext_audio)
waveform, sample_rate, lables
class timit(Dataset):
_ext_audio = “.wav”
def init(self, root, url=URL, folder_in_archive = FOLDER_IN_ARCHIVE,
downlaod = False, transform = None,
target_transform = None):
if transform is not None or target_transform is not None:
warning.warn(“Show warning”, DeprecationWarning)
self.transform = transform
self.target_transform = target_transform
archive = os.path.basename(url)
archive = os.path.join(root, archive)
self.path._path = os.path.join (root, folder_in_archive)
if not os.path.isdir(self.path):
raise RuntimeError (“Dataset not found. Please use download=True, to download it.”)
walker = walk_files(self._path, suffix=self._ext_audio, prefix=False,
remove_suffix=True)
self._walker = list(walker)
def getitem(self, n):
fileid = self.walker[n]
item = load_timit_item(fileid, self._path, self._ext_audio)
waveform, sample_rate, labels = item
if self.transform is not None:
waveform = self.transform(waveform)
if self.target_transform is not None:
labels = self.target_transform(labels)
return waveform, sample_rate, labels
def len(self):
return len (self._walker)
When I run this command
timit_data = torchaudio.datasets.timit(’.’, download=True)
it gives me tourchaudio.datasets has no attribute timit  I am following Yeson dataloader