class_docstr: SoundWriter
  
  Examples:
      >>> fs = 16000
      >>> with SoundWriter('ark,scp:outdir,out.scp') as f:
      ...     f['key'] = fs, array
code: def __setitem__(self, key, value):
      assert_scipy_wav_style(value)
      rate, signal = value
      wavfile = Path(self.dirname) / (key + "." + self.pcm_format)
      soundfile.write(wavfile, signal.astype(numpy.int16), rate)
  
      if self.writer_scp is not None:
          self.writer_scp.write(f"{key} {wavfile}\n")
      if self.writer_nframe is not None:
          self.writer_nframe.write(f"{key} {len(signal)}\n")
  
imports: from pathlib import Path
  from typing import Dict
  import h5py
  import kaldiio
  import numpy
  import soundfile
  from espnet.utils.cli_utils import assert_scipy_wav_style
  from espnet.utils.io_utils import SoundHDF5File
label_desc: Use image node_id 2 for calling the SoundWriter obj's underlying member method code with example usage: obj.__setitem__(key, value) without return types