def METHOD_NAME(self):
    paths = self.input_fnames
    fnames_context = map(
        lambda x: os.path.join(
            self.output_path, x.replace("." + self.extension, ".h5context")
        ),
        map(os.path.basename, paths),
    )
    for name, target_fname in self._progress(
        zip(paths, fnames_context), total=len(self)
    ):
        wav, sr = read_audio(name)
        z, c = self.model(wav)
        feat = z if self.use_feat else c
        writer = H5Writer(target_fname)
        writer.write(feat)