docstr: Performs ESPNET related Data-Preparation.
  Generates the utt2spk, text and wav.scp files
  
  Args:
  speaker_folders (list): The folders from where to extract data
  dataset (str): The dataset we are working with (train, test, dev)
docstr_tok: ["Performs","ESPNET","related","Data-Preparation",".","Generates","the","utt2spk",",","text","and","wav.scp","files","Args",":","speaker_folders","(","list",")",":","The","folders","from","where","to","extract","data","dataset","(","str",")",":","The","dataset","we","are","working","with","(","train",",","test",",","dev",")"]
code: def perform_data_prep(speaker_folders: list, dataset: str) -> None:
      """Performs ESPNET related Data-Preparation.
      Generates the utt2spk, text and wav.scp files
  
      Args:
      speaker_folders (list): The folders from where to extract data
      dataset (str): The dataset we are working with (train, test, dev)
      """
      utt2spk, text, wav = DatasetUtils.generate_espnet_data(
          speaker_folders, dataset
      )
  
      utt2spk_file = os.path.join("data", dataset, "utt2spk")
      text_file = os.path.join("data", dataset, "text")
      wav_file = os.path.join("data", dataset, "wav.scp")
  
      Utils.save_list_to_file(utt2spk, utt2spk_file)
      Utils.save_list_to_file(text, text_file)
      Utils.save_list_to_file(wav, wav_file)
  
file_path: espnet/egs2/lrs3/asr1/local/data_prep.py
imports: import argparse
  import logging
  import os
  from pathlib import Path
  from typing import List, Union
  import numpy
label_desc: Use image node_id 4 for calling the DatasetUtils obj's underlying member method code with example usage: obj.perform_data_prep(speaker_folders, dataset) without return types