class_docstr: Writer class for 'wav.scp'
  
  Args:
      outdir:
      scpfile:
      format: The output audio format
      multi_columns: Save multi channel data
          as multiple monaural audio files
      output_name_format: The naming formam of generated audio files
      output_name_format_multi_columns: The naming formam of generated audio files
          when multi_columns is given
      dtype:
      subtype:
  
  Examples:
      >>> writer = SoundScpWriter('./data/', './data/wav.scp')
      >>> writer['aa'] = 16000, numpy_array
      >>> writer['bb'] = 16000, numpy_array
  
      aa ./data/aa.wav
      bb ./data/bb.wav
  
      >>> writer = SoundScpWriter(
          './data/', './data/feat.scp', multi_columns=True,
      )
      >>> numpy_array.shape
      (100, 2)
      >>> writer['aa'] = 16000, numpy_array
  
      aa ./data/aa-CH0.wav ./data/aa-CH1.wav
code: def __init__(
      self,
      outdir: Union[Path, str],
      scpfile: Union[Path, str],
      format="wav",
      multi_columns: bool = False,
      output_name_format: str = "{key}.{audio_format}",
      output_name_format_multi_columns: str = "{key}-CH{channel}.{audio_format}",
      subtype: str = None,
  ):
      assert check_argument_types()
      self.dir = Path(outdir)
      self.dir.mkdir(parents=True, exist_ok=True)
      scpfile = Path(scpfile)
      scpfile.parent.mkdir(parents=True, exist_ok=True)
      self.fscp = scpfile.open("w", encoding="utf-8")
      self.format = format
      self.subtype = subtype
      self.output_name_format = output_name_format
      self.multi_columns = multi_columns
      self.output_name_format_multi_columns = (
          output_name_format_multi_columns
      )
  
      self.data = {}
  
imports: import collections.abc
  from pathlib import Path
  from typing import List, Tuple, Union
  import numpy
  import soundfile
  from typeguard import check_argument_types
  from espnet2.fileio.read_text import read_2columns_text, read_multi_columns_text
label_desc: Use image node_id 1 to create a new SoundScpWriter object  with example: obj = SoundScpWriter(outdir, scpfile, format, multi_columns, output_name_format, output_name_format_multi_columns, subtype)