code: def generate_samples(self):
          
          filenames = glob_all(self.args.random_data_folder, '*.wav')
          shuffle(filenames)
          while True:
              for fn in filenames:
                  for x, y in self.vectors_from_fn(fn):
                      yield x, y
docs: Generate training samples (network inputs and outputs)